• Resolved mshekow

    (@mshekow)


    Since 1.22.0 the TOC no longer expands. I’m using the GeneratePress theme and the latest WordPress version. I’ve provided the link to a page where the problem becomes apparent (where 1.22.2 is installed).

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @mshekow,

    I suspect that there might be some?cache?issues.

    If you are using any?cache?plugin on your site, you should purge the?cache?afterward to ensure that any changes made to the code, files, or the outward appearance of the website go into effect on the next HTTPS request.

    Also, kindly clear the browser cache and check it once.

    Let me know how it goes.

    Regards,
    Sweta

    Thread Starter mshekow

    (@mshekow)

    This did not help. I am using the W3 total cache plugin, and I just clicked on “Performance -> Purge all Caches”. I reloaded the page in a new private window, the problem remains.

    Since you can access the link to a problematic page yourself, you should be able to diagnose the problem on your end – or are you implying that on your computer/browser, the TOC opens just fine? Did you test it?

    Also, note that in the backend (in the Post editor window) the TOC does expand just fine. It is only broken in the front-end.

    Hello @mshekow ,

    It seems like the JS is not loading on the Page for TOC. Can you please exclude that JS from caching?

    JS Path to exclude – wp-content/plugins/ultimate-addons-for-gutenberg/assets/js/table-of-contents.js

    Let me know how it goes. Looking forward to hearing from you.

    Regards,
    Sweta

    Thread Starter mshekow

    (@mshekow)

    Thanks. In fact, the problem is with minification, not caching. If I add this path to the W3 Total Cache “Minify” setting called “Never minify the following JS files”, the menu is shown as expected. Still, this is of course just a work-around, not a proper solution.

    Hello @mshekow ,

    Just to let you know, we load the Table of contents JS file only when the Table of content is used on the page to optimize performance.

    However, we are continuously working on optimizing the loading of more assets for better improvements.

    We will continue working to make it better.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Table of Contents (TOC) does not expand’ is closed to new replies.