Use the ismobilerequest conditional tag to speed up blog loading
2. Disabling Widgets or Gadgets
I exemplify the widget ID is "HTML5", in your HTML template editor, type CTRL+F on your keyboard, to search for the "HTML5" widget code, then press ENTER, or you can go directly to the HTML widget code by clicking "Jump to widget " in your HTML template editor.
Select your widget ID in the "Jump to widget" list, since the Widget ID that I exemplified is HTML5, so I chose HTML5. After you click, it will look like this:
Click the black arrow on the HTML5 widget code if the entire code is not visible, after you click the black arrow, code like this will appear:
<b:widget id='HTML5' locked='false' title='' type='HTML'> <b:includable id='main'> <!-- only display title if it's non-empty --> <b:if cond='data:title != ""'> <h2 class='title'><data:title/></h2> </b:if> <div class='widget-content'> <data:content/> </div> <b:include name='quickedit'/> </b:includable> </b:widget>
Now it's time for us to wrap the HTML5 widget code using the isMobileRequest conditional tag code, after wrapping, it will look like this:
<b:widget id='HTML5' locked='false' title='' type='HTML'> <b:includable id='main'> <b:if cond='data:blog.isMobileRequest == "false"'> <!-- only display title if it's non-empty --> <b:if cond='data:title != ""'> <h2 class='title'><data:title/></h2> </b:if> <div class='widget-content'> <data:content/> </div> <b:include name='quickedit'/> </b:if> </b:includable> </b:widget>