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

Edge isn't loading CSS fallbacks correctly #91

@jansende

Description

@jansende

Edge isn't loading CSS fallbacks correctly. This is a bug which got introduced in v1.1.6.

In line 502 to 505, instead of:

// Needed for IE11 especially. `onload` is fired even when there's a 404 for `link` elements.
if (type !== 'js' && !me.css.check(library) && Object.hasOwnProperty.call(window, "ActiveXObject") && !window.ActiveXObject) {
    return me.spawn.failed(payload);
}

It should be:

if (type !== 'js' && !me.css.check(library)) {
    var isIE = /*@cc_on!@*/false || !!document.documentMode;
    if (!isIE)
        return me.spawn.failed(payload);
    // Needed for IE11 especially. `onload` is fired even when there's a 404 for `link` elements.
    else if (Object.hasOwnProperty.call(window, "ActiveXObject") && !window.ActiveXObject)
        return me.spawn.failed(payload);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions