#957 ✓resolved
dleffler

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

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Tags

Pages