One thought on “Dynamically loading an external JavaScript or CSS file”
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.
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