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

Documented default script attributes vary from actual #304

Open
Ingramz opened this issue Oct 16, 2024 · 0 comments
Open

Documented default script attributes vary from actual #304

Ingramz opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ingramz
Copy link

Ingramz commented Oct 16, 2024

🐛 The bug

The following script

useScript('https://cdn.jsdelivr.net/npm/[email protected]/dist/js-confetti.browser.js')

currently yields

<script data-onload="" data-onerror="" defer="" fetchpriority="low" crossorigin="anonymous" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js-confetti.browser.js" data-hid="5c23421"></script>

While documentation lists async as one of the attributes that will be added by default, it is missing from the generated output above.

At the same time fetchpriority="low" seems to be missing from documentation, which is also a default.

🛠️ To reproduce

N/A

🌈 Expected behavior

🌈

ℹ️ Additional context

No response

@Ingramz Ingramz added the bug Something isn't working label Oct 16, 2024
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

1 participant