• Resolved Sprutt

    (@sprutt)


    Hi,

    This plugin seems really promising for my current project, I’m just curious to know if it degrades gracefully in case the user has disabled Javascript? So the user doesn’t get stuck on a loading screen.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author safelayout

    (@safelayout)

    Hi @sprutt,
    Thanks for reaching out to us!

    Does it degrade if JS is disabled? Yes, because many cache and optimizer plugins remove the no-script tag, which causes the preloader not to be displayed, and also because there are very few systems that disable JavaScript today, we removed the no-script tag from the plugin in version 2.0.71.

    The solution: The only way to do this is to modify the plugin’s source code (not recommended!)
    In version 2.1.1, change line 2517 of the file “\wp-content\plugins\safelayout-cute-preloader\inc\class-safelayout-preloader-admin.php” to the following.

    echo '<noscript><style>#sl-preloader{display: none !important;}</style></noscript><style id="safelayout-cute-preloader-css" data-no-optimize="1" data-no-minify="1">';

    After changing the code, please go to the preloader settings and click on the “Save Changes” button.

    Regards,

    Thread Starter Sprutt

    (@sprutt)

    Thanks for your quick and detailed reply @safelayout!

    So if I understand you correctly other plugins might completely break the functionality of the preloader if I make this change, even if JS is enabled?

    Plugin Author safelayout

    (@safelayout)

    Hi @sprutt,

    Yes, in some cases it will cause the preloader to not display at all. Usually cache plugins have an option to remove the no-script tag, which can cause the preloader to not display at all if this option is enabled on your site. Of course, not in all cache plugins, but some of them.

    Regards,

    Thread Starter Sprutt

    (@sprutt)

    Ok, then I understand, thanks again @safelayout!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.