I would like to load javascript files only on Desktop version of my Google blogspot (blogger.com) since I need a light version of my blog for mobile.
I came through followings, but not working
<b:if cond != 'data:blog.isMobile'>;
<b:if cond = !'data:blog.isMobile'>;
<b:if cond = '!data:blog.isMobile'>;
<b:if cond='data:blog.pageType !== "data:blog.isMobile">
How can I write "is Not Mobile" conditional in Google blogspot? Thanks in advance for all answers.
================================================================================
Update: I'm using following code at the moment and it's working but better ideas are welcome
<b:if cond='data:blog.isMobile'>
<b:else/>
//I include javascript files here and they only appear on desktop version
</b:if>
You can use true
or false
statements in blogger conditional tags in this case.
This is the best way ;)
<b:if cond='data:blog.isMobile == "false"'>
//Contents inside this, will only appear in Desktop version.
</b:if>
Edit #1:
This will work only if you have enabled mobile template, and set it to custom.
And it does work on Chrome's mobile emulator. (will be redirected to mobile version if visiting from a mobile device or with an emulator that reflects a mobile Browser User Agent. it will add ?m=1
at the end of the URL)
Hope this helps.