[Resolved] Shortcode causes Cumulative Layout Shift

Home Forums Support [Resolved] Shortcode causes Cumulative Layout Shift

Home Forums Support Shortcode causes Cumulative Layout Shift

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1572349
    Kornel

    Hi!

    I’m using Generatepress with the Calculated Field Form (CFF) module. The forms generated with CFF can be inserted in the page with shortcodes. That problem is that the shortcode is processed very late which causes large Cumulative Layout Shift mainly on Desktop view.

    you can check this on this page using Google Chrome Lighthouse: https://calcpark.com/bmi-calculator/

    If you take a look at it, you may also see it with your eyes as the form loading late and shifting down the content below it.

    Is it possible to change the processing order of shortcodes to load it faster, earlier not causing Cumulative Layout Shift?

    Thanks,
    Kornel

    #1572514
    David
    Staff
    Customer Support

    Hi there,

    the issue is the form plugin is making a bunch of Javascript requests – all of which are written inside the body, the JS is render blocking, so nothing below it is loaded until those scripts are.

    You can try using using a plugin like Flying Scripts to defer loading of those scripts. Ultimately its something that the plugin developer should correct.

    #1572516
    Kornel

    Hi David!

    Great, thanks, I’ll try to cacth them.

    All the best,
    Kornel

    #1572571
    David
    Staff
    Customer Support

    You’re welcome.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.