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

add option to place <script> at the end of <body> #53

Open
alih107 opened this issue Apr 25, 2023 · 1 comment
Open

add option to place <script> at the end of <body> #53

alih107 opened this issue Apr 25, 2023 · 1 comment

Comments

@alih107
Copy link

alih107 commented Apr 25, 2023

Add the option that allows to place <script> at the end of <body> instead of <head>.
Reasoning: a react app throws this error https://legacy.reactjs.org/docs/error-decoder.html/?invariant=299.
The problem is, app renders page inside of <div id="root"> tag, and <script> is loaded before is initialized even though it has defer parameter.

@zubozrout
Copy link

This is a possible workaround I think: https://stackoverflow.com/a/73759421/1642887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants