Skip to content

window onload event not getting fired #89

@DenisMir

Description

@DenisMir

At the moment I am loading a simple jquery based script the following way:

$script.order([
  '//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js',
  '/public/scripts/app.min.js'
]);

This is working fine but when trying to catch the onload event on the window in my app script it is not getting fired.

Example:

$(window).on('load', function(){
  console.log('Loaded');
});

This event is not getting fired on the latest chrome version (47.0.2526.111). When I'm loading jquery and the app script blocking I'm getting the event fired correctly.

Is there a way to load it asynchronously while getting the event?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions