Wordpress LScache Plugin: data-no-defer=1? attribute not working
Last Updated on: Wed, 15 Apr 2026 00:00:02 On the wp-admin/admin.php?page=litespeed-page_optm#settings_tuning page I found the information that I can add the HTML attribute data-no-defer=1 to my script to disable defer, but it doesnt work. This topic was modified 2 years ago by Rafal Calka. Report number: ZIBOFBBJ Hi, May I know how did you add it ? you may need to add that BEFORE LSCWP starts to optimize the page. Best regards, Hi @CacheCrawler May I know how did you add it? I added this in the theme code (I have inline script in header.php) Hi, Could you please post that code , I will try to reproduce it from my side I tried add this into bottom of my theme footer document.getElementById( demo ).innerHTML = Hello JavaScript! and it works @CacheCrawler data-no-optimize=1 works but data-no-defer=1 doesnt Hi, oh yes , sorry my bad. I see , its due to inline JS has been minified/combined as well , so this attribute is not being obeyed. will report to dev , you can use no-optimize or JS exclude for the time being. Best regards, This is a good catch. Fixed in v3.6-rc4. Thanks.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference