Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Feature request - YUI should load module css instead of hard link in view template

#957

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'
        }
    }

Reported by dleffler · March 12th, 2013 @ 12:39 AM

State: resolved
Milestone: 2.2.1
Assigned to: dleffler dleffler

Activity

  1. expNinja
    expNinja
    • 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 Feature request - YUI should load module css instead of hard link in view tem... state:resolved responsible:dleffler milestone:2.2.1] https://github.com/exponentcms/exponent-cms/commit/ccd88c6b208570ec...

    July 6th, 2013 @ 05:18 AM

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.