HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
799 stars 184 forks source link

Lazy load blocks or defer rendering #126

Open faran-dw opened 2 years ago

faran-dw commented 2 years ago

I am facing a problem where the page builder takes a lot of time to load when we try to edit any page.

It seems like all the blocks are being rendered even if any block is not added to page yet: image

The db queries are being run, and images are being loaded which slows down the page editor. Can you please let me know if I am doing something wrong here? Is there any way to just show components/blocks here, but don't render those unless added to page?

We have lots of blocks, can't afford those being loaded on page builder edit.

Thank you.