Welcome Guest, Not a member yet? Register   Sign In
Insering javascript into html head from library

If I want to make sure that some javascript is loaded every time a class is, what's the best way?

I've thought of providing a method that could be used like:


Of course that would rely on the user making sure they used it correctly, which is no big deal but is there a way for my class to achieve the script injection without the use of the above method?

Why reinvent the wheel?
http://ellislab.com/forums/viewthread/101236/ (I use this a lot)

Im sure theres others of you search around for an asset manager.

Theme © iAndrew 2016 - Forum software by © MyBB