There are situations where pre-rendering variants in PHP will not work when there are caching plugins involved. The caching mechanism would be the one determining the variant instead of the user.
An option to always have JavaScript determine the variant would be better.
This could be done over XHR.
There are situations where pre-rendering variants in PHP will not work when there are caching plugins involved. The caching mechanism would be the one determining the variant instead of the user.
An option to always have JavaScript determine the variant would be better.
This could be done over XHR.