You are right. Those rules can further optimize DNN by allowing them to be merged into one file which will then be minified, compressed, and cached. It does not require the StaticFileHandler. The way PageBlaster decides that it is safe to merge the files is by only merging the ones in the head section. The rules are designed in a way that moves those extra files to the head from the middle of the page. The xhtml one has to be moved first, because of some redundent conflicts in the core DNN JS. As part of the optimization, the Merged JS file is also moved to the bottom of the page. This makes your page render much faster in the browser. Since the JS File is at the bottom, then the initialization of the controls also has to come after that at the bottom, so those are also moved. Now the Page can load and be renderered using the merged CSS file and after it is visible in the browser it can do all the JS initialization. Otherwise the Page rendering would be stopped while the JS files were loaded and the intializations done. |