• Resolved marcorroma

    (@marcorroma)


    Hi, thanks for your plugin. I have a question:
    With the Pro version can I manage java and css loads in bulk on all posts or only on each post?
    It would be useful to be able to check all the posts in bulk for sites that publish many articles.
    I await a response.
    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @marcorroma You can unload CSS/JS in all posts or only on specific post types already in the Lite version. For instance, if you use WooCommerce, you can unload a specific CSS file on all /product/ pages. Can you be more specific about it? Perhaps some examples would be good.

    Thread Starter marcorroma

    (@marcorroma)

    Thanks for your answer.
    What I want to do is not upload some scripts for all posts in bulk.
    These scripts must be uploaded to the homepage and unload in all posts.
    And I want to manage the loading of the scripts in the archives.
    These three functions must be independent of each other.

    At the moment I can only not load a script on the homepage and decide to do the same thing throughout the site, but if I want this script to be uploaded to the homepage and not loaded into posts how can I do?

    Thank you

    Plugin Author Gabe Livan

    (@gabelivan)

    @marcorroma Asset CleanUp doesn’t have an upload feature that will allow you to actually add CSS/JS files to load on certain pages. It fetches the list of the already loaded assets (CSS/JS) and you can choose to unload them or alter the way they load (e.g. if you go Pro and defer/async them or minify and combine them).

    The plugin is kept simple from this perspective as enqueueing styles and scripts is done by the plugins and the theme. Asset CleanUp, as its name suggests, helps you clean up the “crap” that is not needed on specific pages.

    Does that help? Or you want to keep a script loaded on the homepage (not upload it) and then make sure it doesn’t load on all posts?

    Thread Starter marcorroma

    (@marcorroma)

    Thanks for the explanation.

    What I mean is to have something like this:
    Image home
    also in posts and archives.

    Instead in posts and archives I can’t manage the loading of scripts and CSS:
    Image posts

    Example:
    I have 3 scripts in total: Bye.js, Hi.js and Hello.js
    I want only Bye.js to be loaded on the homepage
    Posts are uploaded by Bye.js, Hi.js and Hello.js
    In the archives only Hi.js and Hello.js

    How can I do?

    Plugin Author Gabe Livan

    (@gabelivan)

    “Instead in posts and archives I can’t manage the loading of scripts and CSS:”
    You can do that if you follow the instructions mentioned there. Go to “Posts”, “All Posts”, click on the title of any post and you will see the meta box “Asset CleanUp: CSS & JavaScript Manager”.

    “I want only Bye.js to be loaded on the homepage”
    In this case, just select “Hi.js” and “Hello.js” to be unloaded from the homepage and Bye.js (since it’s not unloaded) will automatically load by default

    “Posts are uploaded by Bye.js, Hi.js and Hello.js”
    What do you mean by “Posts are uploaded”? That’s the part that confused me as you can’t upload any CSS/JS via Asset CleanUp. It is meant to clean up pages, not insert any CSS/JS into pages.

    Thread Starter marcorroma

    (@marcorroma)

    Ok. You solved my problem.
    Thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Manage java and css loads in bulk’ is closed to new replies.