The Visual Editor is currently being injected on all pages for browsers with the chrome extension installed. This is executing a lot of React code behind the scenes even if the user is not using the visual editor at all.
This PR adds a check to only mount the React app when the necessary query params (vc-id) are in the URL
The Visual Editor is currently being injected on all pages for browsers with the chrome extension installed. This is executing a lot of React code behind the scenes even if the user is not using the visual editor at all.
This PR adds a check to only mount the React app when the necessary query params (
vc-id
) are in the URLBefore:
After refresh w/ changes: