Closed nikitahl closed 7 months ago
Name | Link |
---|---|
Latest commit | 60c4154f2a0e666aae6f144c1180191af9e2751f |
Latest deploy log | https://app.netlify.com/sites/caniuse-embed/deploys/65d50c553da99700082dc083 |
Thanks for submitting this @nikitahl ! This looks good and works fine for me locally, will go ahead and merge now
This PR contains a fix for the
DOMContentLoaded
event inside thesrc/caniuse-embed.js
. For cases when thecaniuse-embed.js
script is added after the document has completed loading e.g. lazy loading an embed (which is my case).PR contents:
package.json
file, in order to run thenpm run start
command without errors.gulpfile.js
file, according to the current docs.DOMContentLoaded
event to check whether the document has completed loading as suggested on MDN.Please consider reviewing this PR and merging it if you think this fix is appropriate.