Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.js in the footer. How to?
#7
(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 Dodgy

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 Huh

Well. In a perfect world Rolleyes
Reply


Messages In This Thread
.js in the footer. How to? - by emanwebdev - 2014-01-20, 03:47:26
RE: .js in the footer. How to? - by shawn_a - 2014-01-20, 07:32:06
RE: .js in the footer. How to? - by emanwebdev - 2014-01-20, 13:42:56
RE: .js in the footer. How to? - by shawn_a - 2014-01-20, 07:34:27
RE: .js in the footer. How to? - by shawn_a - 2014-01-21, 02:22:27
RE: .js in the footer. How to? - by lnickel - 2014-01-22, 02:56:38
RE: .js in the footer. How to? - by emanwebdev - 2014-01-22, 04:43:52
RE: .js in the footer. How to? - by shawn_a - 2014-01-22, 05:16:52
RE: .js in the footer. How to? - by evan70 - 2014-01-22, 10:41:00
RE: .js in the footer. How to? - by shawn_a - 2014-01-22, 10:49:48
RE: .js in the footer. How to? - by evan70 - 2014-01-23, 20:56:43



Users browsing this thread: 1 Guest(s)