kirby-tools / community

Report bugs and engage in the future of the plugins
0 stars 0 forks source link

Update preview on blur #23

Closed arnoson closed 6 hours ago

arnoson commented 1 month ago

Describe the feature

Updating the preview while typing in text fields/blocks can be a bit laggy for more complex pages. It would be great if there would be an option to disable the interval-based update and use blur events on any text fields/blocks instead.

Final checks

johannschopplich commented 6 hours ago

Hi Arno!

Thanks for the feature request. I like it a lot. I've just released v1.5.0 of the Live Preview plugin with a new section property: The updateStrategy property allows you to control how the preview is updated when changes are made to the content. The following update strategies are available:

To change the default strategy to blur, use the updateStrategy property:

type: preview
updateStrategy: blur
arnoson commented 5 hours ago

Awesome, thanks!