• Resolved dieter93

    (@dieter93)


    Is there a way to get Cumulative Layout Shift under control?

    Hidden sections are unfolded for a short time when the page is loaded.
    This creates a layout shift that can be very large and unattractive depending on the length of the content.

    Is there a way to counteract this?

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author twinpictures

    (@twinpictures)

    This is because there is a) a large amount of content on your page b) the page has a longer load time c) the server is slow.

    The plugin will wait until the page finishes loading before the initial collapse. This is so that the indexing robots from search engines can properly crawl and index the hidden content.

    To force the hidden content to be hidden on page load, assign the maptastic class to the target using the targclass attribute like so:

    [expand title="trigger text" targclass="maptastic"]hidden content[/expand]
    
    Thread Starter dieter93

    (@dieter93)

    Thanks for the detailed explanation, especially for the SEO part.

    The class works.

    Your answer helps me a lot. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cumulative Layout Shift’ is closed to new replies.