Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Switch from window.onload to DOMContentLoaded #224

@IgorMinar

Description

@IgorMinar

https://developer.mozilla.org/en/Gecko-Specific_DOM_Events

DOMContentLoaded is supported by all modern browsers and IE9 will support it as well.

For legacy browsers there are workarounds, but it would be wise to just follow the approach that jQuery choose:

https://github.com/jquery/jquery/blob/master/src/core.js#L256

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions