Dynamically loading an external JavaScript or CSS file

Check these 2 URLs – the first one guides you how to load it and the second to unload it. Interesting – Ajax Era
 
 
 
I don’t mind feedback 😉
 
Advertisements

Author: Ram

geek passionate about music and photos

1 thought on “Dynamically loading an external JavaScript or CSS file”

  1. What a great concept! You could have several javascript / css files with the same function and class names but somewhat different functionality. Additionally, if you have large javascript files that slow down the loading of the page, you could load them only when needed to speed things up. Very cool! I may try this on a couple of sites I’m working on – I don’t really have the requirement for this type of flexability, but I could use the praceitce.
     
    Cheers,
    Jeff

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s