Dangerously Setting InnerHTML on anything other than a Div causes CSS to load only after interactivity. #29339
Unanswered
jamesworden
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Forgive me for not following the appropriate post format, I just want people to be aware of this issue.
In development, dangerously setting innerHTML works on 'p' tags and 'div' tags alike. In production, dangerously setting innerHTML through a 'p' tag causes the CSS to load only after resizing the window or interacting with the site for a little while.
It took me hours to figure this out, and I hope that other people don't struggle like me, going from GitHub issues to reddit threads with no solutions that seemed to work.
Beta Was this translation helpful? Give feedback.
All reactions