• Resolved demir16

    (@demir16)


    I set up LSCache according to my needs. Every page has custom <script> tag with custom JavaScript at the end of the body. These scripts change dom content dynamically. But if I enable defer Js, the custom js in the <script> doesn’t work, so the layout spoils. When I disable it everything works fine.

    I think the problem is about inpage scripts that produce dynamic content. All other layout is Ok.

    The broken part example: https://prnt.sc/1x8yrok

    https://prnt.sc/1x8yvk4

    Server: hosting ER with lites peed web server

    PHP 8.0
    WordPress and all plugins updated

    Report number: YRAAIGLN

    Report date: 10/24/2021 18:09:15

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    then please use Defer JS exclude to exclude this part of JS from being deferred

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Defer JavaScript breaks the layout’ is closed to new replies.