Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preloading with download attributes trigger twice #76

Open
Darklg opened this issue May 25, 2020 · 0 comments
Open

Preloading with download attributes trigger twice #76

Darklg opened this issue May 25, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@Darklg
Copy link

Darklg commented May 25, 2020

Hi !

When the script is enabled a link has a "download" attribute, a click triggers two downloads of this file.

<a href="http://example.com/file.zip" download>my file</a>

I have reproduced it in Chrome macOS 81.0.4044.138, and Firefox macOS 76.0.1.

The browser will sometimes ask to enable download for multiple files ( sorry, alert is in french )

capture

It happened on the WordPress plugin, but it can be reproduced on your demo website by adding a download attribute to most links.

Once the WordPress plugin is disabled, everything works fine, as in a local test file when i removed the script.

@dieulot dieulot added the bug Something isn't working label Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants