Support » Plugin: Autoptimize » No Theme CSS Loaded

  • Resolved thinkmedia

    (@thinkmedia)


    Hi,

    I have just installed the plugin and turned on the css options and now when my site loads there is a message in a black box in the upper left corner that says “No Theme CSS loaded”

    Why is that there and how do I get rid of it, other than disabling the CSS Options?

    Thanks

    Mitch

    https://wordpress.org/plugins/autoptimize/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Evening Mitch;
    “No theme CSS loaded” is not a AO-message. What theme are you using?

    It is possible (likely, even) that your theme has some checks in place to make sure the CSS is loaded and that, due to AO having aggregated & minified all CSS, that check fails, but I’m afraid you’ll have to check with the theme developer on how to prevent that check from being done (or to improve it). Feel free to loop me of this dialog if useful!

    Kind regards,
    frank

    Hey Frank,

    Thanks for getting back to me.
    Genesis > Lifestyle Pro
    I also have Genesis Design Palette Pro (plugin) and Genesis Extender (plugin).

    I’ve added the theme and plugin css files to the exclusion list but it still shows up.

    Merry About Town

    Hey Frank,

    Found the source, it is the Slickr-Flickr plugin that causes that message to show up and NOT the actual theme files.

    Cheers,

    Mitch

    Plugin Author Frank Goossens

    (@futtta)

    it is the Slickr-Flickr plugin

    not so slick after all … 😉

    frank

    Sorry to jump in – but I’m having the same issue and happy that I found this as my first search result as I also use Slickr-Flickr!

    Mitch, did you manage to get the message to stop appearing? I’ve tested the site and the plug-in works fine. It just complains…

    Thanks!

    I found the code buried in this file” slickr-flickr/galleria/galleria-1.4.2.js

    if (!css) {
    if (retryCount++ > 5) {
    Galleria.raise( ‘No Theme CSS Loaded’, true );
    } else {
    window.setTimeout(tryLoadCss, 500);
    }
    }

    I simply deleted the raise line completely so it take no action:

    if (!css) {
    if (retryCount++ > 5) {

    } else {
    window.setTimeout(tryLoadCss, 500);
    }
    }

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No Theme CSS Loaded’ is closed to new replies.