django-webpush icon indicating copy to clipboard operation
django-webpush copied to clipboard

Consider adding defer/async to webpush headers

Open marco-esubasta opened this issue 9 months ago • 1 comments

Lighthouse doesn't like the amount of time it takes to load the scripts, it throws render blocking errors, that's why I recommend adding defer/async to the scripts, so that they are loaded asynchronously or right at the end of the load, reducing the time it takes to load the page.

Maybe make it optional, so that you can control wether you want it to load asynchronously or not.

image

Greeting from :argentina: :handshake: :bangladesh:

marco-esubasta avatar May 09 '24 15:05 marco-esubasta

Hi @marco-esubasta, thanks for reaching out. My knowledge in javascript is limited. Can you provide me some documentation or if you can make a PR that would be really helpful. Thanks! Vamos Argentina 🇦🇷

safwanrahman avatar May 10 '24 21:05 safwanrahman