Make WordPress Core

Opened 7 months ago

#50101 new defect (bug)

Server side Gutenberg block add example cache

Reported by: nextendweb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: javascript, performance Cc:


If you have a block which has render_callback, so rendered at server side and you define example in registerBlockType then every time when you move your mouse in the add panel over your block, a new request will be made to the server to render the module.

I think this is unnecessary overload to the server and you could cache the first response.

Screen recording: https://www.youtube.com/watch?v=PidSzymx73I

Change History (0)

Note: See TracTickets for help on using tickets.