Use our revised Warmup Data API to optimize data loading for sites that render both in the backend code and in the client-side code, allowing costly data fetching operations to be done only once.
When your visitors first enter your site, some operations might be done both in the backend and on the client-side. While this is done to improve performance of the page load, some operations are a bit time consuming, and best performed only in the backend.
You can now use the warmupData.set() function to perform these operations in the backend and save the results for the client side code to access with the corresponding WarmupData.get() function. This way, the client side code can skip the operation. Of course, you can code the operation in the client-side code too, just in case the client-side code gets to the operation first. How can you know where your code is rendering? With our Rendering.env() function of course! Want to know more? Check out this revised article and of course the Velo API Reference.