Selective refresh paves a path for frontend editing

Photo of author
Written By Brian Krogsgard

1 thought on “Selective refresh paves a path for frontend editing”

  1. Thanks for the writeup.

    Currently, postMessage enables live changes, but saving those changes requires a full page reload. postMessage doesnā€™t do any server side communication.

    Actually, saving settings that are previewed via postMessage does not require a full page reload. The problem with previewing changes purely via postMessage is that the logic for applying the change has to be completely duplicated in JavaScript from what is done in PHP for normal site visitors. This isn’t a huge problem for simple scalar settings like a blogname or background color, but for compound settings the selective refresh framework allows for the rendering logic to be kept DRY, which is essential for scalably previewing changes widgets, nav menu, or content in a post/page.

Comments are closed.

A2 Hosting
Elementor
GoDaddy
Gravity Forms
Pagely
WordPress.com