A little while ago, we announced that starting soon, your Wix Code sites will start loading faster in certain circumstances, thanks to the magic of server-side rendering. (Sites that do not contain code are already rendered on the server when viewed on mobile devices). Many of you have asked for a way to test your site, to see if it will be ready when sites begin to be rendered on the server.
Here we explain how you can temporarily force your site to render server-side now, before it will be rendered server-side for your users. This allows you to test whether your code will work as expected when server-side rendering is implemented for your users.
Note: The instructions below assume you are using the Chrome browser.
-
Open your published site in your browser.
-
Open your browserâs developer tools (Mac: Cmd + Opt + I, Windows: Ctrl + Shift + I).
-
Simulate a mobile user agent by clicking " Toggle device toolbar " and choosing a mobile device from the dropdown on the device toolbar.
-
Add ?forceSsr=true to the end of your siteâs URL in the address bar and press Enter.
Now you can test your site with server-side rendering.
Note:
-
Only your published site is rendered on the server. You cannot check your site in preview mode.
-
Your site will only render on the server with the additional URL parameter and only in mobile view.