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

remove globalDefer #24

Merged
merged 2 commits into from
Jul 10, 2023
Merged

remove globalDefer #24

merged 2 commits into from
Jul 10, 2023

Conversation

18alantom
Copy link
Owner

@18alantom 18alantom commented Jul 10, 2023

globalDefer was used to defer dom updates when:

  1. document readyState was still loading
  2. sb was initialized in a <script> with <head> parent

This is bad cause it isn't explicit causing code to work in unexpected ways.

This can be taken care of by running the code in an <script async> tag or a <script type="module"> tag (esm imports to be added in the future).

@18alantom 18alantom marked this pull request as ready for review July 10, 2023 16:00
@18alantom 18alantom merged commit 3619f1d into main Jul 10, 2023
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

Successfully merging this pull request may close these issues.

1 participant