Welcome Guest, Not a member yet? Register   Sign In
Loading Javascript once for all views?
#7

[eluser]CroNiX[/eluser]
Look into an asset manager. You can dynamically add js/css files and raw js/css from your controller, which it will stick in the head of the document...

I load jQuery and a few other things globally, and then add specific files as needed per controller, like your custom scripts.


Messages In This Thread
Loading Javascript once for all views? - by El Forum - 08-29-2012, 09:03 AM
Loading Javascript once for all views? - by El Forum - 08-29-2012, 09:40 AM
Loading Javascript once for all views? - by El Forum - 08-29-2012, 10:07 AM
Loading Javascript once for all views? - by El Forum - 08-29-2012, 01:39 PM
Loading Javascript once for all views? - by El Forum - 08-29-2012, 01:44 PM
Loading Javascript once for all views? - by El Forum - 08-29-2012, 02:00 PM
Loading Javascript once for all views? - by El Forum - 08-29-2012, 03:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB