TYPO3: Javascript at the bottom of your page


Yslow tells you to put your javascripts at the bottom of your pages. Normally when you include your JS files TYPO3 puts them in your head by default. To fix this you can easily:

Old style:

page.includeJS.file1 = file.js

Solution:

page.20 < lib.javascript

lib.javascript = HTML
lib.javascript.value = <script type="text/javascript" src="file.js"></script>

Note:

In this example I take it your content is in page.10
If you already use page.20 than just take a higher value.

It’s not posible (as far as I know) to put the default js at the bottom, this is core stuff.


Bookmark and Share

2 Comments »

 
 

Comments are currently unavailable due to spam.