Ticket #860 (closed enhancement: fixed)
JS file concat and load at the bottom
|Reported by:||dsdenes||Owned by:|
|Priority:||normal||Milestone:||Jelix 1.2 beta|
|Hosting Provider:||Blocked By:|
According to http://developer.yahoo.net/blog/archives/2007/07/high_performanc_5.html there should be a possibility to load some JS file at the bottom of the page.
The JResponseHtml::addJSLink would have an additional parameter: bottom. If the file would be loaded at the bottom, the JResponseHtml::output would place ONE js link befor </body>. This link would point to a js type response file with a hash parameter (JResponseJs). JResponseHtml::output would read the files locally and concats/minifies them into one file and names this file as the md5hash of the array of required files. JResponseJs would read the file according to the parameter.