How to React to Changing Environments Using matchMedia

added by stefan judis
1/3/2015 2:26:33 PM


The article describes how to avoid the initializing of modules that are not needed. Good examples for these are menu solutions for smaller devices, that are also bound for larger screen and just not visible. The execution of these modules is not needed and can be saved. Using the matchMedia().addReporter functionality modules can also be initialized later on when the environment changed.