Current time: 12-13-2019, 03:06 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Images loading in slowly on new server
11-04-2019, 09:09 AM
Post: #1
Images loading in slowly on new server
Hi, I have just migrated my website to a new Windows Server 2016 and the images, although they're now being loaded in via http/2, are taking an age to come in. It seems like they are requested at the same time, but can't begin to load in until the last image has been rendered:

https://www.webpagetest.org/result/19110...view_step1

Also, some SVGs take over 10 seconds to come back. This is only apparent on this new server.

Thanks in advance

Ben
Find all posts by this user
Quote this message in a reply
11-07-2019, 09:27 PM
Post: #2
RE: Images loading in slowly on new server
What you might be seeing is typical HTTP/2 behaviour

Under HTTP/1.1 the browser prioritises the requests - each TCP connection can only be used to one request/response at a time, so once all six connections are in the use the remaining requests queue until there's unavailable connection

Under HTTP/2 only one connection is used to the main origin, and the responses are multiplexed over it - the browser can send multiple requests at a time (with a priority attached), and then the server fulfils then. This means some requests will queue on the server while higher priority requests are served and this is probably what you're seeing in the long request bars.

If you want to compare the difference test in Chrome, and then create a comparison run with the --disable-http2 command line flag

HTTP/2 works best when the content comes over as few as connections as possible so self-hosting jquery etc should bring benefits

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
11-07-2019, 09:31 PM
Post: #3
RE: Images loading in slowly on new server
Hi Andy

Thank you so much for the simple and easy to understand explanation of what is going on. I will certainly do the test you have suggested and report back.

Thanks!

Ben
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)