Showing posts with label include. Show all posts
Showing posts with label include. Show all posts

Sunday, May 20, 2012

How do you dynamically load a javascript file? (Think C"s #include)


How can you reliably and dynamically load a javascript file? This will can be used to implement a module or component that when 'initialized' the component will dynamically load all needed javascript library scripts on demand.

Thursday, April 19, 2012

Is PHP"s include resource-expensive (particularly during iterations)?


Does PHP cache include requests? I was wondering how to clean up my code and I thought about using a bit more includes . Consider the following scheme.