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
-
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.
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