Mobile app version of vmapp.org
Login or Join
Courtney195

: Is it possible to compare http requests with download time? I'm asking this because of the following situation: Fonts from my system were taking 2-6s to load. To improve this, I made the system

@Courtney195

Posted in: #GoogleSearchConsole #GoogleWebsiteOptimizer #Optimization #Seo #WebDevelopment

I'm asking this because of the following situation:

Fonts from my system were taking 2-6s to load.

To improve this, I made the system load the same font from google repository, and I remove the css call to the font that was located on my own system's folder.

Now the font takes about 250ms to be loaded (nice result!), but due to some other problems, Now I have 3 http requests being done to the font (two duplicated ones due to an iframe issue, and a third one).

So my question is: If before my changes, the fonts were taking 4s to load.. with one request, and now it is taking let's say 750ms (sum of the three http requests), even if I have raised the number of http requests, can I affirm that I optimized my page?) I mean.. if the download time of these three requests are taking less time than the one, for me it's clear I improved the system... Do you agree with me?)

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Courtney195

2 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

I'm gonna say mostly yes and rarely no. The reason why is because you are relying on google to process part of your webpage by supplying part of the assets (in your case, fonts). If google at any point goes offline due to technical reasons (or any other reason), and at the same time, a new request is made to your page, then the fonts will not load.

You mentioned:

but due to some other problems, Now I have 3 http
requests being done to the font (two duplicated ones due to an iframe
issue, and a third one).


So its very likely your slow loading issue is the result of your website being popular and having fonts load three times instead of one. If you can, try using something else instead of iframes. The only time I use an iframe is if I present a third-party page within my own.

Also, check your webpage with gtmetrix.com and you could get a bad grade on one element talking about minimizing http requests. Try to make your number of http requests per page 5 at the most.

10% popularity Vote Up Vote Down


 

@Sarah324

Yes, if load time is lower, you will have optimised the page. Also, the font file will be cached after the first request, so you will most likely end up with only a single request for the font file.

To verify, you could use your browser's built-in timeline, or use an external tool like Google PageSpeed Insights: developers.google.com/speed/pagespeed/insights/.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme