WordPress.org

Ready to get started?Download WordPress

Forums

MinQueue
[resolved] Not all files work (3 posts)

  1. dEM0nsTAr
    Member
    Posted 11 months ago #

    Not all files are added to the queue like

    http://www.peleke.de/wp-content/plugins/piwik-search-engine-keywords/style.css
    http://www.peleke.de/wp-content/themes/picochic/style.css
    http://www.peleke.de/wp-includes/js/comment-reply.min.js?ver=3.5.2
    http://www.peleke.de/piwik/js/

    even if I add wp-piwik, style and comment-reply.min to the list.

    And if I add gdsr_style_main the CSS isn't loading correctly for the stars.

    Thanks for help.

    http://wordpress.org/plugins/minqueue/

  2. tzdk
    Member
    Posted 11 months ago #

    /*jquery, gdsr_script, jquery-ui-core, jquery-ui-widget, jquery-ui-mouse, jquery-ui-draggable, mousewheel, sfx, slideshowfx, picochic_scripts, picochic_respond, comment-reply*/ /*

    so comment-reply is in there. If you remove it will only load on single view post and comments are open. Why he writes this in Helper window

    Remember some scripts are loaded conditionally (on certain pages, or for logged in users etc).

    Rest will be because files are not loaded via enque system, they just get spit out, like

    /**
             *  Include CSS-file in wordpress-head
             *  @return string
             */
            function IncludeCSS()
            {
                echo '<link type="text/css" rel="stylesheet" href="' . $this->PluginDir . '/style.css" />';
            }

    and

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    Star thing is some dynamik stuff with php extension.

    Piwik is ignored because on other domain, I think.

    I guess it must be a bug if Helper window show handles for these incompatible files. Does it?

  3. Matthew Haines-Young
    Human Made
    Plugin Author

    Posted 11 months ago #

    Thanks for replying tzdk.

    MinQueue will not proccess externally hosted files.

    It is also only able to proccess files loaded using the WordPress script and style enqueue system. tzdk is correct - it looks like your plugin is echoing the script tag rather than using wp_enqueue_script.

    If it shows up in the helper tool then it is correctly enqueued. Note that some scripts are only enqueued on certain pages. However as they can be registered separately and this allows MinQueue to proccess them even if they are not actually enqueud on a certain page. For example the comment reply script is registered on all pages even when not loaded.

    Hope this was helpful

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.