dropin-minimal-css icon indicating copy to clipboard operation
dropin-minimal-css copied to clipboard

Add `defer` to the script tag in the usage section

Open waldyrious opened this issue 3 years ago • 1 comments

This way the script waits until the DOM is ready to execute.

waldyrious avatar Dec 18 '22 11:12 waldyrious

@waldyrious Thanks for this PR!

It makes sense (in theory) to add the defer attribute here, but do you have any examples of pages that load slowly enough for this to make a difference? Also, if it makes sense to add it here, should we also be adding it to index.html as well?

dohliam avatar Feb 11 '23 22:02 dohliam