⚠️ Bubble performance problems and how to solve it

well, it would be nice if they just run it when the plugin is used at the page hehe. And same for algolia, where is bubble using it if i dont?

I see what you’re saying.

But Bubble doesn’t load plugins the way you’re seeing unless the plugin developer built it that way. Some plugins stick their scripts in the shared header or run global code, so those will load everywhere whether you use them or not. That’s on the plugin, not Bubble. It’s one of the reasons I’m a little leery of certain plugins too.

And yeah, Bubble uses the same run.js file for every app. Algolia is included in that bundle because it’s part of Bubble’s core engine and probably still needed for older apps. It doesn’t actually do anything unless your app uses a feature that calls it. The Algolia package is tiny, so it’s not really affecting page load.

This is just the way I’ve always understood it. Maybe someone else knows more

I just updated logos, from PNG to WebP…my logos for my plugins went from 1.2MB to 30KB; thanks for posting this

thats awesome! hope some more plugin creator see this and can update their icons too. Thankss

In my opinion, it is the duty of the plugin developer to properly configure the plugin so that it does not load in the common section, which causes the library to load even when there are no plugin elements on the page.

This caught my attention because we’re paying much more attention to performance on a project I’m currently working on with the Girmairi team.

If those plugin icons are really being loaded every time the editor opens, even when the Plugins tab hasn’t been opened, it does feel like unnecessary work.

I’d be curious whether Bubble could:

  • lazy-load the plugin icons only when the Plugins section is opened
  • cache those assets more aggressively after the first load
  • put some limit/compression around unusually large plugin icons

The individual file might not look huge, but once an app has a lot of plugins, small things like this start adding up. That’s what I have seen quietly.

What I find interesting is that performance problems aren’t always caused by one big issue; sometimes it’s several small things happening on every load.

It would be interesting to know whether anyone has measured how much of the editor load time actually comes from plugin assets?. I believe the Bubble team has the best knowledge on this and can save me from