Board Thread:General Coding Help/@comment-31714129-20170701215236/@comment-27958705-20170702162112

Speedit wrote: But I guess that only prevents the desktop template from loading on mobile, and doesn't prevent the mobile template from loading on desktop. Just revert it. If (!/mobile/.test) {change to desktop content}. It will show mobile content by default and change to desktop if scripts are available. Smthn like that (pseudo): div class="desktop" style="display:none;" ...

div class="mobile"...

script: $('.desktop').show; $('.mobile').hide;

without any checks, if script running then it is not mercury.