uglipop.js icon indicating copy to clipboard operation
uglipop.js copied to clipboard

Initialization issues with on-demand loading

Open ginsterbusch opened this issue 9 years ago • 1 comments

The init call doesn't fire when being loaded with eg. yepnope or headjs. Thus, on-demand loading with jQuery + similar frameworks should fail as well.

My current workaround for headjs is adding a head.ready call directly. But that's certainly NOT how it's supposed to be.

cu, w0lf.

ginsterbusch avatar Jun 24 '15 13:06 ginsterbusch

Workaround example


    //init on window loaded
    on(doc, "DOMContentLoaded", init)
    head.ready( init );
})(window, document)

ginsterbusch avatar Jun 24 '15 13:06 ginsterbusch