Skip to content

import Promise doesn't resolve when loading cached script in IE10 #4472

@mAAdhaTTah

Description

@mAAdhaTTah

Do you want to request a feature or report a bug?

Report a bug.

What is the current behavior?

Related to #2189.

It appears that the Promise created by import to inject the dependent script never resolves in IE10 for scripts that are loaded from the cache.

If the current behavior is a bug, please provide the steps to reproduce.

I was able to reproduce this consistently in browserstack. If I loaded up the page, the first time it loads everything correctly. If I navigate to a different page, the scripts aren't loaded, but if I clear the browser cache, navigating to the next page works again.

We are loading a few other scripts on page load through similar mechanisms (injecting <script> tags into the <head>), but there aren't so many injected that way (6-10 maybe?).

What is the expected behavior?

Promise resolves so execution continues.

If this is a feature request, what is motivation or use case for changing the behavior?

N/A.

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

WebPack 2.2.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions