Closed devinus closed 9 years ago
Notice how the AJAX calls before e.g. font loading and image loading, but it will make the font loading slower when it should be first-come, shouldn't it?
Notice how the AJAX calls before e.g. font loading and image loading, but it will make the font loading slower when it should be first-come, shouldn't it?
FYI: you actually left out the timings, so i cannot come to the same conclusion as you.
@stefanpenner Why would the timings matter if it's async? AJAX requests should NOT make other things load slower, right?
@stefanpenner Why would the timings matter if it's async? AJAX requests should NOT make other things load slower, right?
Yes, but i would love to see them. I feel like i am only being shown a list of files, that don't indicate the problem. My curiosity is getting the better of me, but now i feel like i dont have all the information.
If you can provide a demo somewhere, it would be much easier to diagnose, rather then in the abstract.
I am doubltful that this is an ic-ajax problem, but am willing to investigate assuming i am provided some good starting point for diagnosis.
Here it is with timings:
@stefanpenner Ok, this is REALLY weird. If I add a loading
substate to this route, it doesn't happen.
With a loading substate:
Ah, you have hit the max number of active connections to anyone host (which is 6 in chrome).
You likely just want to be sure the image requests and fonts happen earlier, or move static assets to a different host (cdn, assets.domain.com) as it would get a new limit of 6 connections.
This is interesting. So because 6 is the limit, it is cycling through all the fired off requests in batches of 6 before finally getting to my webfonts which unfortunately don't fire until they're parsed in the page.
yup this is how the browser works. You'll have to re-order or split across multiple hosts.
This happens on both Firefox and Chrome. Using a lot of
request
calls insetupController
will make loading web fonts loaded in the<head>
happen really late.