
Feature request: we don't adhere to the css 'unique' param, nor do we sort css/javascript by unique name
Reported by dleffler | April 14th, 2014 @ 03:33 PM
We currently only use the 'unique' param for inline css code and not the other expCSS::pushToHead() params (though we did in the 2.0 preview release). This is especially important since css is a cascading implementation.
Furthermore, we don't seem to be sorting by unique-name for css nor javascript.
Comments and changes to this ticket
-
dleffler April 15th, 2014 @ 10:36 AM
For clarification, we do sort the css AND javascript content/inline code by unique name, none of the links, etc.. are sorted however (css primer is placed at the top, then core, then other css links)
-
dleffler April 15th, 2014 @ 07:04 PM
OK, for clarification, we (currently) only sort
- the theme styles ($css_theme[] by filename)
- and the javascript code pieces ($params['content']) ($js2foot[] by unique name)
- though we do queue/store the css style pieces ($params['css']) by unique name ($css_inline[]).
However, 'unique' is a mandatory param for the {css} & {javascript} blocks
-
-
-
-
dleffler May 31st, 2014 @ 06:38 PM
- Milestone changed from 2.3.0patch2 to 2.3.0patch3
-
dleffler June 17th, 2014 @ 11:41 PM
- Milestone changed from 2.3.0patch3 to 2.3.0patch4
-
-
-
-
-
-
-
-
-
expNinja February 3rd, 2016 @ 03:34 PM
(from [06532d86afcf8437decbd858d8cd63e36d1950e6]) Now allows for passing an array of scripts to expJavascript::pushToFoot/expTheme::foot(), etc... like we allow for css; also now compensates for not having passed those scripts or css with the 'unique' param so we assign one based on microtime to keep errors out [#1146] https://github.com/exponentcms/exponent-cms/commit/06532d86afcf8437...
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Bug Tracker for Exponent CMS
Tags
Referenced by
-
1189 Feature request: add $config param to expTheme::foot() method While this would be simple to implement, it exposes our f...