Resource hanging

49 vistas
Ir al primer mensaje no leído

Shane Marsh

no leída,
14 ene 2021, 5:02:52 a.m.14/1/21
para ngx-pagespeed-discuss
I can't remember if I have posted about this before (apologies if I have). I've never been able to work out what is going on but some of the nightly WebPageTest speed tests (not every site) come back where usually one (sometimes two) resources hang causing poor LCP scores/load times. I've never been able to work out why. The size of the site or number of resources needed doesn't seem to matter. The top site for example is very small. 

These are some from last night:


Any ideas?

Thanks in advance :)
Shane

Longinos

no leída,
15 ene 2021, 4:43:20 a.m.15/1/21
para ngx-pagespeed-discuss
Hi Shane
I have tested only the 1st site, the Teide one.

1.- You have some js inlined at the top, some of it depend on jquery, but jquery is loaded after the snipet, so maybe these snipets don´t run until jquery is loaded.
Maybe you must load jquery at the top of the head section and/or put the snipet at the botoom of the page or allmost at the bottom of the head section when all the css and js files in the head are loaded.

2.- The image for LCP is a css background, so don´t display until the css are loaded and procesed. Need you the parallax efect?

3.- Maybe the cloudfront make some strange header manipulation: webp images have a content-type for jpg, cache-control is set to private, don´t have etag header, images are gziped....

4.- The page weigth is 2,6Mb (compresed) and the images are 2,1Mb, make it more ligth. The  l and r side images are near to 1mb.

Try this image and see how it look. Is 50% less kb.

left-side.jpg

Shane Marsh

no leída,
15 ene 2021, 6:10:31 a.m.15/1/21
para ngx-pagespeed-discuss
OMG! Thanks for this. You have many ideas I hadn't considered including seeing if this issue is related to page weight. There are some checks I can put in place to test for that because the issue affects a number of sites beyond the list I gave. Also thanks for spotting the content type issue - that's a strange one. I will look into it. 

I'll come back to you when I've done some more digging - likely to be next week. 

Many thanks
Shane



Shane Marsh

no leída,
18 ene 2021, 4:44:42 a.m.18/1/21
para ngx-pagespeed-discuss
Still looking into your previous message but I noticed  this result this morning. 


Can't make sense of this. Why would 1 resource hang like that?

Kind regards, 
Shane

Shane Marsh

no leída,
18 ene 2021, 11:23:32 a.m.18/1/21
para ngx-pagespeed-discuss
I'm now thinking this might not be an issue for you guys. I'm seeing the problem arise with files that have not been optimised. Although I can't rule out pagespeed mod, I am looking through the rest of the stack tweaking the filesystems nginx buffers and load balancers to see if there are issues elsewhere.

Thank you so much for your help!

Shane
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos