Head JS

Out of context: Reply #4

  • Started
  • Last post
  • 4 Responses
  • fugged0

    ^

    1. Agreed, however the point I was trying to make is that headjs isn't going to magically load everything faster. You're still making the same number of requests. You're still limited to the number of concurrent connections, etc...

    2. Not necessarily. As I said, if functionality in the page requires the dom to be ready, and requires the javascript to be loaded, it's not going to matter.

    Simply moving your javascript to the bottom of the page will achieve a similar behavior.

    • Good points. I tend to use the "JS at the bottom" approach too.chow
    • Regarding #2, there are gains to be had by optimizing your JS to not rely on DOM ready...chow
    • ...I have not used DOM ready in a JS app for years :)chow

View thread