InvalidCharacterError: setAttribute ‘=”async”‘ bug in Gues
-
Hello LiteSpeed team,
We are experiencing a recurring error in the browser console caused by LiteSpeed Cache (v7.2), related to the delayed loading of JS:
InvalidCharacterError: Failed to execute ‘setAttribute’ on ‘Element’: ‘=”async”‘ is not a valid attribute name.
๐ This happens when:
- Guest Mode is ON
- Guest Optimization is ON
- Load JS Deferred / Delayed is enabled (but even when OFF, it can sometimes reappear)
- QUIC.cloud optimizations are active (UCSS, VPI, Combine JS)
Weโve fully purged:
- All caches (LSC + QUIC.cloud)
- UCSS, Critical CSS, LQIP, VPI
- Also disabled Delayed/Deferred scripts, but the error still shows up in certain guest views.
You can test the issue live here:
๐ https://prokese.rs/dugotrajna-platnena-kesa-za-usisivac-karcher-wd2/This is causing failing diagnostics in PageSpeed and browser console (especially Chrome and Firefox).
We believe the issue is due to litespeed_load_delayed_js() attempting to set an attribute incorrectly:
el.setAttribute(‘=”async”‘)โ WordPress: 6.8.1
โ LiteSpeed Cache: 7.2
โ WooCommerce + QUIC.cloud Page Optimization: ONPlease let us know if this is a known bug or if there’s a fix/workaround planned in upcoming releases. We love your plugin and just want to get rid of this console error completely.
Thank you in advance for your help!
โ Ljubomir
https://prokese.rs
The topic ‘InvalidCharacterError: setAttribute ‘=”async”‘ bug in Gues’ is closed to new replies.