bacoords / block-settings

17 stars 0 forks source link

Client Side Performance Thoughts #2

Open bacoords opened 3 months ago

bacoords commented 3 months ago

Right now all the block settings are just dumped into JavaScript and dealt with there. I'm sure there's a more performant way to do this, including offloading some work onto the server ahead of time.

A list of random ideas open to discussion

Lovor01 commented 3 months ago

I think at least first is fine. I always communicate with my code in block editor via extended REST endpoints. This would also mean that data will be sent only when requested which would speed up editor loading. Also, endpoint should be locked to only logged users. Splitting into per block settings would also enable granularly calling at expense of multiple requests which shouldn't be much of an issue for modern servers, but I think still less performant... I must think about this one