Skip to content

jQuery 3 - window load inside ready state will not be triggered #3194

@dkern

Description

@dkern

Description

In jQuery 3.0.0 I got the issue, that a window load callback inside a ready state gets not triggered anymore. I think this is because it's async since 3.0.0. But this is used in jQuery plugins, to be only executed after all page content is loaded. And this is often wraped in a ready state by users.

Example Code

https://jsfiddle.net/vpm59qws/

$(function() {
    $(window).on("load", function() {
        console.log("this will not be triggered");
    });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions