When possible, the rendering process that runs when a page loads is split in two in order to improve performance. The first cycle in the process happens server-side and the second cycle happens client-side. When not possible, all rendering happens client-side.
Use the Rendering API to track when and where your code is running to selectively run parts of your code in certain conditions.
To use the Rendering API, import wixWindowFrontend
from the wix-window-frontend
module: