Specific Home Page for Mobile

Due to load times and other specifics I would like to create a different home page or starting page just for the mobile version. This page will be completely different than the desktop home page so is not just and issue of reordering elements for the mobile version. Is it possible?

Hi Philippe

Have you considered adding a test in your home page onReady for the device form factor?
Take a look at this:

What you should be able to do is test for a mobile form factor and then redirect from the desktop page to the mobile one you want to go to. Something like this:

import wixWindow from 'wix-window';
import wixLocation from 'wix-location';

// ... 
let formFactor = wixWindow.formFactor; 

$w.onReady(() => {
    if (formFactor === 'Mobile') {
        // Redirect to my dedicated mobile page
        wixLocation.to('/mobileHome');
    }
});

Hi Philippe: What are your page urls? We can assess the code then. Thanks

Hi Philippe:

Sounds like you need to use a router then.
30 seconds is a long time for the page to load anyway, do you know why it takes so long?

Anyway here is another idea which should work.

Instead of redirecting to the mobile page after the desktop page has loaded create a proxyHome page.

This page is blank (don’t add any content because it redirects immediately so will load very quickly.
It’s page code is very simple you just need to make the proxy page your home page in the page settings and then add the code shown in the diagram below.


Perhaps this will do the trick.

Steve

I had the same thought and realize it does affect SEO. So after a few tries I just stop using this method.