lemonsaurus / django-simple-bulma

Django application to add the Bulma CSS framework and its extensions
MIT License
137 stars 17 forks source link

Use async to defer loading of js, preload CSS. #45

Closed lemonsaurus closed 4 years ago

lemonsaurus commented 4 years ago

When we add the bulma-related JS scripts and the CSS stylesheets into the , we don't enable any kind of deferment or preloading.

This means that sites using django-simple-bulma are taking a performance hit, because these are render-blocking resources.

To fix this, these should be inserted with async and preloading parameters so that they will not block the loading of the page itself.