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

Why deferred scripts are not recommended? #219

Closed
maurociancio opened this issue Aug 20, 2018 · 1 comment
Closed

Why deferred scripts are not recommended? #219

maurociancio opened this issue Aug 20, 2018 · 1 comment

Comments

@maurociancio
Copy link

Hi there, I'm reading the docs, specifically this line:

Asset-Pipeline provides a set of tags that can be used to ensure script blocks are deferred to the end of your page. This is not recommended as it is obtrusive, but has been added to help newcomers upgrade existing apps from resources.

Would you please explain why deferred scripts are not recommeded?
Thanks!

@davydotcom
Copy link
Contributor

because its bad practice to do seperate js files for each page. better to do a single manifest.

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

No branches or pull requests

2 participants