I’m using a service to generate code and i get responses back from an external service. I’m often getting 30+ at a time.
I’m also using a favicon service to fetch favicons. The favicon service allows prefixing the domain with an arbitrary number to bypass the browser connection limit (eg. http://2245.example.com/?url=example.net)
In total my site can make upwards of 50-100 requests, but 15 of them are from my server
I used yslow and got a big fat F for this. Are these requests blocking? I could be generating 30 or more on a single page load, although it seems to load fine in testing… everything on my actual page loads immediately and I use css3 and jquery to fade in the animations nicely
There’s a maximum of 4-6 concurrent requests in most browsers so the others will be delayed yes, but it depends on what they are as to whether or not they’re blocking.
You should avoid it – if it’s part of your service consider loading the data in bulk on your server for the client via an AJAX call, that way you can also cache the results to avoid so many offsite requests.
It’d help if you could show the page for more comprehensive advice, what’re the codes for? Do they change? Can you do it from your server rather than the client?