Avoid large layout shifts

Questions related to the Responsive Web Design tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/respon ... esign.html
Please read this first before posting any questions! Also check out the example project to get an idea how the RWD concept works.

Responsive Web Design FAQ:
http://wysiwygwebbuilder.com/forum/view ... 10&t=63817
Post Reply
Lasa
 
 
Posts: 529
Joined: Sat Oct 06, 2018 3:08 pm

Avoid large layout shifts

Post by Lasa »

Google Page speed insights indicates 5 large layout shifts on http://www.healthyfitnessexpo.com
The whole page has tons of text all in layergrids but 5 are singled out as having large layout shifts?
I checked all the layergrids / text boxes and they are built the same. Why would some be flagged for large layout shifts?
The over all score on the page speed insight is fine in the 90's... it just has me curious as to why?
Lasa
Lasa
 
 
Posts: 529
Joined: Sat Oct 06, 2018 3:08 pm

Re: Avoid large layout shifts

Post by Lasa »

Just to tests...
I duplicated a layergrid with text, that had the highest layout shift and placed it at the bottom of the page to see if it would add another large layout shift on the report... it did not show up as a layout shift.
So I deleted the original large layoutgrid with text and placed the duplicate one in its place...
ran the test... again it shows as having the largest layout shift!?
Now this doesn't make sense at all to me.
Lasa
User avatar
Pablo
 
Posts: 22489
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Avoid large layout shifts

Post by Pablo »

It maybe be related to the 'max-width' property of the text.
This will be applied after the style sheet has been loaded so this may cause a layout shift.
Lasa
 
 
Posts: 529
Joined: Sat Oct 06, 2018 3:08 pm

Re: Avoid large layout shifts

Post by Lasa »

Thanks Pablo, I'll look into that... like I said still got great numbers :D
Lasa
Lasa
 
 
Posts: 529
Joined: Sat Oct 06, 2018 3:08 pm

Re: Avoid large layout shifts

Post by Lasa »

I removed the 'max-width' property on all the text, not only the reported 5, since they are all controlled by the layergrid max-width 1400.
It was worth a try, but the report still shows the same 5 layout shifts!
That's so weird.
Cheers,
Lasa
Post Reply