stefanpenner/ember-app-kit

Suggestion: Defer loading of JavaScript

Closed this issue · 1 comments

After build we got

  <script src="/assets/03258c8c.config.min.js"></script>
  <script src="/assets/21a4d307.vendor.min.js"></script>
  <script src="/assets/bf837588.app.min.js"></script>

When you test the app like google page speed we got

screen shot 2014-05-09 at 14 17 24
screen shot 2014-05-09 at 14 17 37

To Fix it just we need the build add
async

<script async src="/assets/03258c8c.config.min.js"></script>
<script async src="/assets/21a4d307.vendor.min.js"></script>
<script async src="/assets/bf837588.app.min.js"></script>

and after that we got

screen shot 2014-05-09 at 14 29 11

More about Defer loading of JavaScript
https://developers.google.com/speed/docs/insights/BlockingJS

Maybe is a minor thing so can help in seo and speed.

so this is an ember app, without JavaScript there is no content. I don't think this "trick" makes any sense for us.