• This is a promising start for a Splide.js carousel block! Lots of configuration “the Gutenberg way” and things my clients would like, such as setting arrow and pagination colors. But, I don’t think the resource (JS) loading is being done correctly. For one thing, it loads all the JS regardless of whether a page uses the plugin’s block. Second, it seems to load a whole bunch of stuff rather than just Splide.js. For example my dev site loads 3 JS files without the plugin active. With it active (though not in use), it loads 17 files. I think maybe the build process is off?…some of them seem like they would be needed for development only. Anyway, I hope the author continues to refine!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Groundworx

    (@alexandrie)

    Thanks so much for the thoughtful review! I double-checked the plugin’s asset loading with Chrome DevTools, on pages without the Carousel block no Splide or plugin JS is enqueued, and on pages with the block only its view script and CSS load. In the editor WordPress does load the block’s editor bundles so it shows up in the inserter, which is expected behavior. Since I wasn’t able to reproduce the extra files you described, could you let me know which theme you were using when you tested? That would help me look into it further.

    I also appreciated your note about client-friendly controls. I’m already working on an update that will add options for customizing arrow and pagination styles directly in the block sidebar, so you won’t need CSS tweaks for those. Thanks again for the feedback, it helps me refine and improve the plugin!

    Thread Starter norabrown212

    (@norabrown212)

    Thanks for your response! You’re right something curious is going on. If I switch to the 2025 theme, it does not load extra scripts on every page/post. However, if I add a carousel, it does load way more than just the view.js file. In fact, it doesn’t load view.js but script.js, and a bunch of others I would expect to see only on the admin side.

    I wish I could add an image here of the list of requests…it’s react, react-jsx-runtime, hooks, react-dom…etc.

    On my custom theme though, it loads these on every page regardless of whether there is a carousel or not. That’s odd isn’t it? I’m on WP 6.8.1, using an incognito window. I thought *maybe* it was because I have debugging turned on but it happens even when I have it off.

    Let me know if there’s a way we could connect outside of this forum, if I can provide any extra information.

    Plugin Author Groundworx

    (@alexandrie)

    please feel free to send me an email support@groundworx.dev
    lets see if we can troubleshoot together.

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

You must be logged in to reply to this review.