This test determines if your page has Javascript includes in inappropriate places. Grouping Javascript includes together at the end of the page markup is optimal for page load. Due to the HTTP specification putting Javascript includes elsewhere in the page, at the top for instance, will result in loading blocking while the Javascript files are downloaded.
Checking for Javascript placement
This test checks to see if Javascript files are being referenced from the end of the page markup. If any Javascript includes are detected before the end of the page markup then the test reports a FAIL.
If you receive a FAIL for this test, you should consider moving your Javascript references to the end of the page (before the final closing body tag).
Reference
This test is based on a YSlow best practice. See http://yslow.org/faq/ for more details.
Leave a Reply