Defer JavaScript breaks the layout




Wordpress LScache Plugin: Defer JavaScript breaks the layout

Last Updated on: Wed, 15 Apr 2026 00:00:02
I set up LSCache according to my needs. Every page has custom 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 doesnt 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: https://www.english-learn-online.com/vocabulary/classroom-objects/learn-classroom-objects-vocabulary-in-english/ Hi, then please use Defer JS exclude to exclude this part of JS from being deferred Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference