question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicated minified files

See original GitHub issue

Hi guys,

This might be related to chrome rather than webpack, but I’m not really sure about that.

I have a problem related to js files getting partially duplicated by the browser.

The following part of the minified js can visually seen duplicated:

  • Checks if an event is supported in the current execution environment. *
    • NOTE: This will not work correctly for non-generic events such as change,

This happens when chrome is loading the js but I quickly navigate to another link in the website. When I come back, and the files start to load again, then the file gets this duplication problem, this causes a js error that can be seen on console.

commonChunk.54cef61….bundle.js:41 Uncaught SyntaxError: Unexpected token !

The worst problem is that I’m caching files, so the user doesn’t get rid of the error until he clears the cache.

If I wait for the file to load, then the file gets received perfectly by the user.

This seems only to be affecting commonChunk.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:43 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
tomascharadcommented, Feb 12, 2018

Hi @evilebottnawi ,

Just came back from vacations, give me a couple of days more please.

1reaction
tomascharadcommented, Jan 31, 2018

@evilebottnawi But the header appears after the file is duplicated. Give me a couple of days to dig into the header problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

UglifyJS File Watcher keeps creating duplicated minified ...
I've set up a file watcher for UglifyJS to create minified files with the extention filename.min.js. I've set the option to track only...
Read more >
Duplicated variable name in minified js file - Stack Overflow
I had a issue in my recent deployment to prod. It is a .net project. The issue is I have a line of...
Read more >
How to remove unused and duplicate CSS from minified?
With Roots and Grunt, your CSS file is already combined, concatenated, and minified. You may save a kilobyte or two by removing unused...
Read more >
Duplicate files - XTemos
I noticed in the theme file editor that there is a duplicate for each folder. ... To the original file/to the minified file/to...
Read more >
W3TC is not removing minified files from source - WPML
W3-Total-Cache is not minifying files correctly for secondary languages when WPML ... But even with the pro version there is still the issue...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found