• Resolved p2hklipureja

    (@p2hklipureja)


    HI,
    I noticed an anomaly on my page:
    I add a product to cart, page refreshes and product picture disappears. When I click on a place where a picture should be, it opens a link to a picture. The only way to continue shopping is to press “back” button, which screws all browsing up (error “Confirm Form Resubmission” pops-up).

    When I turn “Optimize JavaScript Code” off everything is OK.

    You can see the difference here:

    https://pahklid.ee/vinnutatud-banaan-100g/ Optimize JavaScript Code off
    https://test.pahklid.ee/vinnutatud-banaan-100g/ Optimize JavaScript Code on

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Can you try adding plugins/pixelyoursite to the comma-separated list of JS optimization exclusions?

    Thread Starter p2hklipureja

    (@p2hklipureja)

    added “plugins/pixelyoursite”
    Now “Exclude scripts from Autoptimize” looks like this:

    wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, plugins/pixelyoursite

    but no changes ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ok, let’s take a step back; what happens if you disable “aggregate JS”?

    Thread Starter p2hklipureja

    (@p2hklipureja)

    ok, this seemed to work ??
    Thank you.

    This may sound stupid, but do I have to turn it on someday? What it exactly does?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ideally JS is aggregated, but to do so you’ll need to find out which JS is breaking things.

    what you can do is test with high-level JS optimization exclusions;
    * does is work when wp-includes/js is excluded?
    * does is work when wp-content/themes is excluded?
    * does is work when wp-content/plugins is excluded?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Optimize JavaScript Code and woocommerce’ is closed to new replies.