• Resolved fzamorap

    (@fzamorap)


    Hello, I have been doing tests with the plugin and I have a doubt, I cannot find an option to unload a csv file except in 5 pages (it is an example), I want to do it through a regex.

    Unload site-wide (everywhere) * bulk unload, except on pages that match regex (pag6366| pagdera|/example|otherweb)

    For now if I’m not mistaken, if there are 5 or 10 pages on which the csv file has to load, you have to enter each page to indicate that on that page the file has to be loaded.

    Is this possible to do?

    Another question, for pages created with Thrive Architect in the front end, how can I load the file list into the footer. For now, the file list does not appear as it does with pages and entries that were not created or edited with Thrive Architect.

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

    (@gabelivan)

    @fzamorap thank you for your feature request! This is something that has been requested before and due to the number of requests, it will be implemented as soon as possible. However, it will available for the Pro users. It will allow unloading as well as making exceptions (so two RegExps).

    Another question, for pages created with Thrive Architect in the front end, how can I load the file list into the footer. For now, the file list does not appear as it does with pages and entries that were not created or edited with Thrive Architect.

    If you’re using a page builder in edit mode, the Asset CleanUp is technically deactivated to avoid applying any wrong (by mistake) unloads to the editor page (sometimes a JavaScript error can break the page builder and you don’t want to end up saving something and get stuck) and also declutter the page. If you want to edit that page in the front-end, then you can open it in a new tab without edit mode (standard view). I hope it helps and let me know if I can further help you at your earliest convenience!

    Thread Starter fzamorap

    (@fzamorap)

    Good morning, thanks for your reply. I already saw that you indicated that as soon as possible you would integrate the possibility of applying regex.

    But, I would like to know if you have a more specific period of time.

    I am also clear that the functionality is for the paid version.

    Thank you.

    Plugin Author Gabe Livan

    (@gabelivan)

    @fzamorap due to the increasing demand, the feature will be added to the Pro version within two weeks. It will be added either to the next tag release which will be 1.1.4.9 (1.1.4.8 was just released today) or to the following one, 1.1.5.0.

    Plugin Author Gabe Livan

    (@gabelivan)

    @fzamorap the tag 1.1.4.9 was just released for Asset CleanUp Pro that has this feature implemented.

    Thread Starter fzamorap

    (@fzamorap)

    Hello, thank you for your response, I have reviewed the changes made to the plugin.

    Also check the documentation that was added.
    https://assetcleanup.com/docs/?p=21#wpacu-method-2

    The option is available: “Load it for URLs with request URI matching this RegEx”

    As I previously mentioned in an email I sent you, in my case I would need an option that would not be used to unload assets via regex.

    Something like: “Unload it for URLs with request URI matching this RegEx”

    There are cases when you want to unload an asset on a few pages or a group of pages. That’s where “Unload it for URLs with request URI matching this RegEx” is useful.

    Case Scenario #1

    You’re using WooCommerce and you know a certain CSS/JS file is NOT needed only on the product page. To do that, you tick the “Unload it for URLs with request URI matching this RegEx:”. In the input, you can just type “#/product/#” (a string is enough, no regular expression needed in this case).

    Any URL (request URI to be more precise which is anything after the hostname) that contains “/product/” will unload the CSS/JS file. Anywhere else, it will be unloaded. For instance, it could be a jQuery plugin that is not needed for a lightbox gallery only shown on the single product page. Or a CSS file that is not needed to style the customer reviews shown only on the product page, etc.

    Case Scenario #2

    You’re using a plugin that generates surveys and you know that the URL will always contain words like “survey”. However, you also not need that plugin on a few other pages such as “Contact”, “Feature request”, “Book a reservation”. You want to exclude all the plugin’s files on the pages that were just mentioned.

    You first tick “Unload it for URLs with request URI matching this RegEx:” checkboxes, then the input value for the later choice will be “#(-survey/|/contact/|feature-request|book-a-reservation)#“. In this scenario, it would be any page’s URL that contains “-survey/” (it could be the ending of each URL having a survey form), “/contact/“, “feature-request“, and “book-a-reservation“).

    Do you also consider adding this option?

    Plugin Author Gabe Livan

    (@gabelivan)

    @fzamorap in your first comment, you mentioned:

    Hello, I have been doing tests with the plugin and I have a doubt, I cannot find an option to unload a csv file except in 5 pages (it is an example), I want to do it through a regex.

    Unload site-wide (everywhere) * bulk unload, except on pages that match regex (pag6366| pagdera|/example|otherweb)

    That’s what the latest feature does: you can unload something site-wide, except on a few pages (URIs) that would be matched via a RegEx.

    An option like “Unload it for URLs with request URI matching this RegEx:” will be added, most likely in the next version. It should be used carefully, not to mix with the load exception one that was just implemented.

    I will let you know once the new feature will be implemented.

    Thread Starter fzamorap

    (@fzamorap)

    Thanks, on Monday I will make the purchase of the pro version and I will be waiting for the new version to implement it.

    Plugin Author Gabe Livan

    (@gabelivan)

    @fzamorap the Pro version has been updated to v1.1.5.0 which has the new option to “Unload it for URLs with request URI matching this RegEx”. Consider doing the update and test the new feature. Let me know if you have any questions about it at your earliest convenience!

    Thread Starter fzamorap

    (@fzamorap)

    Thanks, I just bought the pro version of the plugin I will do tests.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unload site-wide (everywhere) * bulk unload, except on pages that match regex’ is closed to new replies.