Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Theme scripts & styles enqueu
#7
ideally we would have better queuing and dequeuing and queue checking.
we have globals
$GS_scripts and $GS_styles, but these are for internal use.
items can be queued at any time so it might be difficult to check the queue, ideally you queue what you want, and GS decides how to output it.

So you could queue `jquery` version 1.11 and someone else queues 1.9, and we would output the best version. This is not implemented yet, but would be ideal for these situations. We could also make registering assets easier, so that you register your own assets or override core ones. In 3.4 this is how various stuff works, it would be possible to override the code_edit and html_edit assets for example. This is still kind of ifffy.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
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)