Dynamically loading an external JavaScript or CSS file
The conventional way to loading external JavaScript and CSS files on a page is to stick a reference to them in the HEAD section of your page. Files that are called this way are added to the page as they are encountered in the page's source, or synchronously. For the most part, this setup meets our needs just fine, though in the world of synchronous Ajax design patterns, the ability to also fire up JavaScript/ CSS on demand is becoming more and more handy. In this tutorial, lets see how it's done.
Blog: mHub -
Read More...
Max Kiesler is an award-winning strategic designer and co-founder and principal of Ideacodes.com, a web consultancy in San Francisco focused on next generation websites. About Max...