
Feature request - YUI should load module css instead of hard link in view template
Reported by dleffler | March 12th, 2013 @ 12:39 AM | in 2.2.1 (closed)
It might save some transfer time if we used to the YUI loader to dynamically load the css for yui custom modules (external scripts) such as slideshow, lightbox, etc... We currently use the {css} function in a template, but could add the css to the EXPONENT.YUI3_CONFIG.modules structure and make it a 'requires' for the module script.
EXPONENT.YUI3_CONFIG.modules = {
'yui2-lightbox' : {
fullpath: EXPONENT.PATH_RELATIVE+'framework/modules/events/assets/js/lightbox.js',
requires : ['yui2-dom','yui2-event','yui2-connectioncore','yui2-json','yui2-selector','yui2-animation','yui2-lightbox-css']
}
'yui2-lightbox-css' : {
path: EXPONENT.PATH_RELATIVE+'framework/modules/events/assets/css/lightbox.css',
type: 'css'
}
}
Comments and changes to this ticket
-
dleffler March 15th, 2013 @ 01:13 AM
- Title changed from Feature request - Have YUI load module css instead of template to Feature request - YUI should load module css instead of hard link in view template
-
dleffler March 16th, 2013 @ 03:27 AM
- Milestone changed from 2.2.0beta1 to 2.2.0beta2
-
dleffler March 29th, 2013 @ 07:59 PM
- Milestone changed from 2.2.0beta2 to 2.2.0beta3
-
dleffler April 20th, 2013 @ 10:17 AM
- Milestone changed from 2.2.0beta3 to 2.2.0release-candidate
-
dleffler May 1st, 2013 @ 10:22 AM
- Milestone changed from 2.2.0release-candidate to 2.2.1
-
-
expNinja July 6th, 2013 @ 05:18 AM
- State changed from new to resolved
- Assigned user set to dleffler
- Milestone set to 2.2.1
(from [ccd88c6b208570ec06fd92e0ed6e16a2ca6760bf]) Moves yui module css loading into yui loader instead of exp css block [#957 state:resolved responsible:dleffler milestone:2.2.1] https://github.com/exponentcms/exponent-cms/commit/ccd88c6b208570ec...
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.