• Resolved w_p_g

    (@w_p_g)


    Dear Team,

    Would like to embedded woocommerce related javascript files in a separate js cache file.
    There is a woocommerce model page in the minify configuration page but it does not work. When selected the script is not added in any woocommerce javascript cache file. It’s ok when the model “all pages” (default model) is selected (however woo js will be loaded for all pages …)

    WP 5.8.3
    Total cache : 0.10.1
    Woo 6.1.1

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @w_p_g

    Thank you for reaching out and I am happy to help.
    Just to confirm, you are trying to remove unused JS by adding them to minify to the different templates?

    When selected the script is not added in any woocommerce javascript cache file

    I am not quite sure what this means so can you please clarify?
    Thanks!

    Thread Starter w_p_g

    (@w_p_g)

    Hello Marko

    Thanks for your quick answer. Here a simple example with screenshot to clarify :
    * The js file “frontend.js” used by a woocommerce plugin should be only loaded on woocommerce page.
    * To do that “woocommerce” template is selected for this script in the totalcache minify configuration page.
    –> https://www.zupimages.net/viewer.php?id=22/05/646y.jpg <–
    * Now it can be excepted “frontend.js” will be added in a js cache file minifying all woocommerce javacscript. This cache file should only be called by woocommerce pages. So “frontend.js” should not be added in the default javascript cache file and should not be loaded from a classical blog page (mean not a woocommerce page).
    * Looking at the browser console after a non woocommerce page is loaded, it can be noticed, this file was loaded like an uncached js file.
    –> https://www.zupimages.net/viewer.php?id=22/05/0y8s.jpg <–

    Regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @w_p_g

    Thank you for the information.
    I was not able to replicate this issue you are having. Please make sure to update W3 Total Cache to the latest version as the version you are using is 2.5 years old.
    See if the problem persists once the plugin is updated.
    Thanks!

    Thread Starter w_p_g

    (@w_p_g)

    Hello,

    Thanks for the answer.
    I think I tried on the last version and had same problem but should test again.
    Maybe could gve you access to a preprod.

    Regards

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @w_p_g

    Thank you for the information.
    Please do not offer to share access in wp.org forums as this is against the rules and guidelines.
    As I mentioned before I was unable to replicate the issue and the files are added successfully on the first attempt.
    Let me know when you have another test performed.
    Thanks!

    Thread Starter w_p_g

    (@w_p_g)

    Hello Marko

    Didn’t know about sharing access restrictions.
    Will try to make other tests.

    Regards

    Thread Starter w_p_g

    (@w_p_g)

    Ok maybe come from the template.
    Thanks for your assist ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Woocommerce model page’ is closed to new replies.