• Resolved Imageharmonyous

    (@harmonyous)


    Accordion block becomes unclickable(?), nothing will happen when you click it, if there is a js optimization on the page.
    Noticed and tested it on the following:
    WP meteor – on apache server php8.3
    Litespeed cache – on ols server php 8.4
    Accordion block will not work if js is set to defer, delay, or async.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Imagethreadi

    (@threadi)

    If I understand correctly, you are using the new Accordion block that was added in WordPress 6.9? And if you use an optimization plugin that optimizes the JS code, it no longer works? Then I would first recommend contacting the support team for the optimization plugin in question, as they are apparently optimizing “too much”, which is causing the problem.

    Thread Starter Imageharmonyous

    (@harmonyous)

    @threadi but, will it still be considered as a plugin problem if several plugins have the same issue? Also, only the new block, the wp-block-accordion, is the only one affected. All other blocks are working as they are.
    I’m using child themes of default wp themes 2023 – 2025 on my sites and all them are using Gutenberg. I’m only using native blocks and they are all working as they should aside from the new one(accordion).

    Moderator Imagethreadi

    (@threadi)

    Since no one here knows how these plugins perform optimization, no one can answer that question for you. The plugin developers will have to check that for themselves.

    Thread Starter Imageharmonyous

    (@harmonyous)

    I see. I guess I’ll do just that.
    Thank you.

    Moderator ImageSupport Moderator

    (@moderator)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘accordion block not working if there is any js optimization’ is closed to new replies.