bestmomo / laravel5-example

Simple laravel5 example for tutorial
MIT License
1.2k stars 568 forks source link

async and newer dnsjs source of the jquery file #4

Closed UnrulyNatives closed 9 years ago

bestmomo commented 9 years ago

Hello, I wonder about the sync attribute. As there is a related library after jQuery load, mustn't keep the load order ?

UnrulyNatives commented 9 years ago

I don't know how to figure this out in case of jquery. I was just pointing out a place for improvement. My test site worked well with the change.

I am sure that the main.js and plugins.js can be loaded with with the async though.

bestmomo commented 9 years ago

I read an article with load tests and with async on many scripts the order seems to be unpredictable.

UnrulyNatives commented 9 years ago

I started to use async after I saw here https://developers.google.com/speed/pagespeed/insights/ that my site is too slow and the async was suggested.

On the other hand, in Laravel 5 I use now the asset pipeline is not working - as far as I can figure out the conclusion from the Google Insights.

Is there any way to increase speed of loading for L5 site?

bestmomo commented 9 years ago

Pages loading does not really depends on Laravel but casual HTTP. I trust boilerplate for this and I followed it for templates.

On framework side there was on Laracasts an interesting discussion about Laravel speed.