In Loading Scripts Without Blocking by Steve Souders, various non-blocking loading techniques are compared. Steve summarises with the following
In many situations, the Script DOM Element is a good choice. It works in all browsers, doesn't have any cross-site scripting restrictions, is fairly simple to implement, and is well understood. The one catch is that it doesn't preserve execution order across all browsers.
Inserting script tags is the approach most libraries …
…APIs, but usually used in conjunction with them).
I ended the talk with touching on tool such as Steve Souders' Mobile Perf bookmarklet and weinre , for remote debugging on mobile devices.
You and mobile
What I am interested in is if you are developing for a multitude of mobile and other devices, what you believe are the biggest obstacles as well as the most promising options. Any thoughts, please let me know!
A large portion of this utility was inspired by the selflessness research on web optimization from Steve Souders ( @ souders ), and the amazing work that has gone into LAB.js by Kyle Simpson ( @ getify ).
But let's not get ahead of ourselves, before you keep reading, it might be a good time and reflect on some of Kyle's insightful thoughts on script loaders , whom also points out Souders ControlJS and Tero Piirainen's head.js , …