2014-01-22, 04:43:52
(This post was last modified: 2014-01-22, 04:53:09 by emanwebdev.)
(2014-01-22, 02:56:38)lnickel Wrote: call the theme_footer function to make your scripts get added there?
Hi
thanks for your help
i'm looking for a too much universal generic can-do-it-all solution
idea was to get a function that gather all the .js and all the .css added by the plugins. No theme dependant. A plugin replacing/filtering the get_header and get_footer so existing themes don't have to be modified. Full transparent.
Look today, you have pages including 3 times jQuery, 2 times Bootstrap.css, and different versions of all these, aso...
My customer add a new plugin; that plugin uses jQuery so another reference to jQ is injected in the page header, baaaam, but it's another version, and badaboom, conflict, and boom,
the gallery carousel is not working anymore.
Dring dring, that used-to-be-happy-customer call me, and what i have to tell is that i still haven't finished that magic function cleaning the redundant .js includes and the a-bit-less-happy-customer start to not understand because because
Well. In a perfect world