• Resolved ofmarconi

    (@ofmarconi)


    Dear LiteSpeed team,
    I’ve been asking for this fix for more than years and simply no one answers me, it’s not possible for a feature to stay broken for so long, a feature that makes sites jump from 48 to 90 points in SpeedTest. Please fix it.

    LiteSpeed report has been sent. Last report number: YRUTFASB. Date of the last report: 04/07/2025 19:30:46.

    I am experiencing inconsistent behavior with the LiteSpeed Cache plugin (running on OpenLiteSpeed). Without any content or configuration changes between visits, the plugin alternates between correctly and incorrectly delaying JavaScript, which severely impacts performance scores (e.g., drops to 48 points on PageSpeed Insights).

    Observed Issue:

    • In lower-scoring runs, JavaScript delay does not occur.
    • Evidence: The cookie consent popup shows immediately, indicating scripts are executed without delay.
    • Google Tag Manager and other scripts that should be delayed are loading right away — even though they are listed in the JS Delay settings.

    Expected behavior:

    Scripts like GTM and cookie banners should load only after user interaction or after DOMContentLoaded, respecting the “Delay All JS” setting.

    Current Configuration:

    I’ve attached the .data export file from the plugin showing the full active configuration. “Delay All JS” is enabled, alongside various JS combination and optimization settings.

    Additional Notes:

    • This is not a cache issue. The behavior alternates between two direct page loads with no cache purge or content change.
    • Sometimes the optimized JS version is served correctly, and other times it is not — indicating a possible bug or failure in cache logic or delivery consistency.
    • I’ve attached three PDF files showing the test results, including visual confirmation of the cookie popup appearing immediately when delay fails.

    Request:

    Please analyze this inconsistency in JavaScript delay. Is there a known bug or a recommended workaround specifically for OpenLiteSpeed environments to ensure consistent delay behavior?

    Looking forward to your support.

    Best regards,
    Orlando

    https://drive.google.com/drive/folders/1CzR89KPlHVq-7VdKTrbC6IkN8fF3iohd?usp=sharing

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Inconsistent JavaScript Optimization – Intermittent JS Delay Failure’ is closed to new replies.