jantimon / jantimon/resource-hints-webpack-plugin

Files appear to be downloading 3 times

Open
#3 5 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
100
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I tested out this plugin, and while correctly adding the `preload` and `prefetch` tags. It appear chrome to downloads the `js` files 3 times. Firefox seems to behave correctly.

```html


Test







```
Chrome (v55):
![image](https://cloud.githubusercontent.com/assets/9244507/22276284/733c7f48-e317-11e6-8cce-3c2da0bcbdd0.png)

Firefox (v52):
![image](https://cloud.githubusercontent.com/assets/9244507/22276323/b1e59090-e317-11e6-8e02-74cd4e8b7a86.png)

Am I missing reading the devtools or is there a larger issue here?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the HTML example in Chrome 55 and Firefox 52, then inspect the browser network panel to compare requests for the preload, prefetch, and script tags. Determine whether the repeated downloads come from the generated resource hints or browser behavior; done means the plugin no longer causes duplicate JavaScript downloads in the affected case and the behavior is verified in both browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.