Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Theme scripts & styles enqueu
#6
(2015-06-04, 23:47:20)shawn_a Wrote: Yeah but its not supported outside of plugins... so as with any feature/bug it can break at anytime.
disclaimer: I do this all the time as well, even inside components with my hook_component plugin

At some point I would like to engineer these things into themes, as well as ability to register plugins, components, and assets.

The problem with this, is what happens when a plugin is already queueing core jquery or jqueryui on front end.
queue_script('jquery', GSFRONT);

Yikes!! Ok so for now I will only include in something like header.inc.php

Thanks for the heads up! So far nothing is broken but you are right what if a plugin I need to use is queueing it!

I forgot to add this in my post but I am plugging into the global vars something like this: I dont know where I got it LOL.

I know just enough to be dangerous Smile

global $SITEURL;

global $TEMPLATE;
Reply


Messages In This Thread
Theme scripts & styles enqueu - by naug - 2015-06-04, 17:19:50
RE: Theme scripts & styles enqueu - by Tyblitz - 2015-06-04, 19:11:20
RE: Theme scripts & styles enqueu - by lnickel - 2015-06-04, 23:37:37
RE: Theme scripts & styles enqueu - by shawn_a - 2015-06-04, 23:47:20
RE: Theme scripts & styles enqueu - by Tyblitz - 2015-06-05, 00:58:37
RE: Theme scripts & styles enqueu - by lnickel - 2015-06-05, 01:34:39
RE: Theme scripts & styles enqueu - by shawn_a - 2015-06-05, 02:31:43



Users browsing this thread: 1 Guest(s)