Disable rendering of JavaScript and Widgets Using isMobileRequest [2]





13
comments





PLEASE NOTE:



We have Zero Tolerance to Spam.

Chessy Comments and Comments with
'Links'
will be deleted immediately upon our review.



(function() {
var items = ['id': '4956152307382696868', 'body': 'Very informative post. Thanks Brother....', 'timestamp': '1437665462771', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1437665462771#c4956152307382696868', 'author': 'name': 'মোঃ হারুন-অর-রশিদ', 'avatarUrl': 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB0LOOk5ynX2i7w9hR8wL8q_scex5DQumDB4FgF6hfemGBw7xPIZKAYOcKpyhe1llNLGIHdw70ClxkzpfoG1zQOKKT-p4zr1IixhLQK8BDpi6llDy6Ucd5oDiEzIeNIswbV9ChRDoPR6o/s35/Rashid.png', 'profileUrl': 'https://www.blogger.com/profile/00480529276521184386', 'displayTime': 'Jul 23, 2015, 8:31:00 PM', 'deleteclass': 'item-control blog-admin pid-148603510', 'id': '4585443216346801804', 'body': 'My question is related to this, but slightly out of the locus. I tried finding a solution on your forum as well. I have a blogger blog with bloggerx26#39;s own default custom mobile display on. But, I need a mobile responsive related posts widget. The one which had been posted on your forum is not working. It would be nice if you could share something like you you guys are using.x3cbr /x3ex3cbr /x3eBeing not tech savvy, your blog has a saviour. I would highly appreciate if you could note this request.', 'timestamp': '1437726440404', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1437726440404#c4585443216346801804', 'author': 'name': 'Nivedita B', 'avatarUrl': '//lh5.googleusercontent.com/-a8Bbowg1jbo/AAAAAAAAAAI/AAAAAAAAGjQ/GqHMt-W8lX0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08673784673785285984', 'displayTime': 'Jul 24, 2015, 1:27:00 PM', 'deleteclass': 'item-control blog-admin pid-1389899924', 'id': '4299884218671993672', 'body': 'Hi, Good Job, Mustafa Bahix3cbr /x3eif i x26quot;Disable rendering of JavaScript and Widgetsx26quot; to my blog, is this helpful to good mobile display result. i am using blogger mobile friendly settings. plz tell me what i do to set my template like you. because your blog fully show on mobile device and this is good for SEO etc... i hop you publish full tutorial about this topic. because every one your blog reader waiting for this :) x3cbr /x3ex3cbr /x3eBest Wishes x3cbr /x3e', 'timestamp': '1437773514197', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1437773514197#c4299884218671993672', 'author': 'name': 'PIX PNG', 'avatarUrl': '//lh4.googleusercontent.com/-85U5pQnCfs4/AAAAAAAAAAI/AAAAAAAADpU/e32Ij5Sx-_I/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/09748372042880519049', 'displayTime': 'Jul 25, 2015, 2:31:00 AM', 'deleteclass': 'item-control blog-admin pid-2019965625', 'id': '2553002881775427495', 'parentId': '4585443216346801804', 'body': 'Hi Nivedita,x3cbr /x3ex3cbr /x3eYou can install responsive widgets and follow the above tutorial only if you are using Custom Responsive Template and not using the blogger default mobile display. x3cbr /x3ex3cbr /x3eIf you have a custom responsive template then you can install the x26quot;Related Postsx26quot; widget we have shared in this blog else you may follow this tutorial series until you have setup a fully Responsive Custom Blogger template', 'timestamp': '1437819612637', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1437819612637#c2553002881775427495', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:20:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '1278882631620682271', 'parentId': '4299884218671993672', 'body': 'Once the above tutorial series is complete you will get answers to all your questions. It is the only thing needed to create a custom responsive blogger template :)x3cbr /x3ex3cbr /x3eI am trying my best to complete it the sooner possible', 'timestamp': '1437819688858', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1437819688858#c1278882631620682271', 'author': 'name': 'Mohammad Mustafa Ahmedzai', 'avatarUrl': '//lh4.googleusercontent.com/-f8qSqNLtpBU/AAAAAAAAAAI/AAAAAAAAJZA/Yfbvp1almlI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11681339458447132019', 'displayTime': 'Jul 25, 2015, 3:21:00 PM', 'deleteclass': 'item-control blog-admin pid-1736397285', 'id': '6877532602957810575', 'parentId': '4585443216346801804', 'body': 'Thank you Mohammad. ', 'timestamp': '1437895241999', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1437895241999#c6877532602957810575', 'author': 'name': 'Nivedita B', 'avatarUrl': '//lh5.googleusercontent.com/-a8Bbowg1jbo/AAAAAAAAAAI/AAAAAAAAGjQ/GqHMt-W8lX0/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/08673784673785285984', 'displayTime': 'Jul 26, 2015, 12:20:00 PM', 'deleteclass': 'item-control blog-admin pid-1389899924', 'id': '4470106107934669129', 'body': 'pls help i change my blog template to a premium template and now i can no longer hide widget on mobile view using x3cbr /x3e ', 'timestamp': '1441115919246', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1441115919246#c4470106107934669129', 'author': 'name': 'okogie david', 'avatarUrl': '//lh5.googleusercontent.com/-5YoomYloQyk/AAAAAAAAAAI/AAAAAAAAAHw/XqDqr85QRjY/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11076681713774955770', 'displayTime': 'Sep 1, 2015, 6:58:00 PM', 'deleteclass': 'item-control blog-admin pid-941752004', 'id': '4146770710700221216', 'body': 'Thank you very much for such a nice tip...i was able to disable/hid some widgets from the sidebar which actually were slowing down the page. On Google Page Speed Insights, mobile score increased to 61(from 54) which is actually not too bad. You can find my blog here http://www.windowshive.com ', 'timestamp': '1441426855806', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1441426855806#c4146770710700221216', 'author': 'name': 'Shafat Ahmad', 'avatarUrl': '//lh4.googleusercontent.com/-ha7kZ-NLa8k/AAAAAAAAAAI/AAAAAAAABRs/aKGJ6MBml74/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/12656485601942026213', 'displayTime': 'Sep 5, 2015, 9:20:00 AM', 'deleteclass': 'item-control blog-admin pid-89016793', 'id': '7159658253406537808', 'body': 'Before my site very slow in android devices i do with your instructions it loads very fast thanks for sharing with us. Thank You Very Much i need this one for my site very helpful to me www.atozDj.in', 'timestamp': '1450022937316', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1450022937316#c7159658253406537808', 'author': 'name': 'AtoZ dj', 'avatarUrl': '//lh5.googleusercontent.com/-ePBwEKHp0Bw/AAAAAAAAAAI/AAAAAAAABSU/GkrSdHLNNVI/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/11533621331619519103', 'displayTime': 'Dec 13, 2015, 9:08:00 PM', 'deleteclass': 'item-control blog-admin pid-1475323179', 'id': '8592836762062331277', 'body': 'How should I use @media tags? I mean, which codes should I place in it to adjust sizes of devices? These posts are helpful. But, Ix26#39;m in fix on this issue.', 'timestamp': '1453474665181', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1453474665181#c8592836762062331277', 'author': 'name': 'Abdullah Adil Mahmud', 'avatarUrl': '//lh4.googleusercontent.com/-2_gat564xUg/AAAAAAAAAAI/AAAAAAAAA6c/h1KkIRW-2Sg/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/17462749408174996847', 'displayTime': 'Jan 22, 2016, 7:57:00 PM', 'deleteclass': 'item-control blog-admin pid-1891410759', 'id': '6011784992496518730', 'body': 'x26quot;official blogger widget scripts load only when the HTML loads so you donx26#39;t need to worry about widgets like PopularPosts, archives, Poll, Comments, Label List etc.x26quot; -------- does this mean that to disable rendering of an official blogger widget I only need to disable its widget without worrying about disabling its script code?x3cbr /x3e', 'timestamp': '1457170321166', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1457170321166#c6011784992496518730', 'author': 'name': 'Mississauga Electrician', 'avatarUrl': '//lh3.googleusercontent.com/zFdxGE77vvD2w5xHy6jkVuElKv-U9_9qLkRYK8OnbDeJPtjSZ82UPq5w6hJ-SAx3ds35', 'profileUrl': 'https://www.blogger.com/profile/03250096593998685352', 'displayTime': 'Mar 5, 2016, 2:32:00 PM', 'deleteclass': 'item-control blog-admin pid-197679325', 'id': '7348423396811436613', 'body': 'Sir i donx26#39;t find between head tag a script slide show wodget script on my template', 'timestamp': '1472401142742', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1472401142742#c7348423396811436613', 'author': 'name': 'Ervan Repana', 'avatarUrl': '//lh6.googleusercontent.com/-YFf-g9Cvwzo/AAAAAAAAAAI/AAAAAAAAAek/DJ9i51q9Gls/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/16895192502093962240', 'displayTime': 'Aug 28, 2016, 9:19:00 PM', 'deleteclass': 'item-control blog-admin pid-1213835892', 'id': '207724440481975191', 'body': 'hi i have put this code on my site but not working show widget on mobile true but it not shown on mobile as well desktop site.', 'timestamp': '1474632167108', 'permalink': 'https://www.mybloggertricks.com/2015/07/disable-loading-javascript-and-html-in-mobile-devices.html?showCommentx3d1474632167108#c207724440481975191', 'author': 'name': 'Devendra Gehlod', 'avatarUrl': '//lh5.googleusercontent.com/-baRoa-K4PFY/AAAAAAAAAAI/AAAAAAAACqs/qYxEKKOSL7w/s35-c/photo.jpg', 'profileUrl': 'https://www.blogger.com/profile/14583030486678251386', 'displayTime': 'Sep 23, 2016, 5:02:00 PM', 'deleteclass': 'item-control blog-admin pid-694758708'];
var msgs = 'loadMore': 'Load more...', 'loading': 'Loading...', 'loaded': 'No more!', 'addComment': 'Add comment', 'reply': 'Reply', 'delete': 'Delete';
var config = 'blogId': '8193278726666811965', 'postId': '6501593742508836848', 'feed': 'https://www.mybloggertricks.com/feeds/6501593742508836848/comments/default', 'authorName': 'M. Mustafa Ahmedzai', 'authorUrl': 'https://www.blogger.com/profile/11681339458447132019', 'baseUri': 'https://www.blogger.com', 'maxThreadDepth': 2;
// 0)
cursor = parseInt(items[items.length - 1].timestamp) + 1;

var bodyFromEntry = function(entry)
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.contentRemoved')
return '' + entry.content.$t + '';



return entry.content.$t;

var parse = function(data)
cursor = null;
var comments = ;
if (data && data.feed && data.feed.entry)
for (var i = 0, entry; entry = data.feed.entry[i]; i++)
var comment = ;
// comment ID, parsed out of the original id format
var id = /blog-(d+).post-(d+)/.exec(entry.id.$t);
comment.id = id ? id[2] : null;
comment.body = bodyFromEntry(entry);
comment.timestamp = Date.parse(entry.published.$t) + '';
if (entry.author && entry.author.constructor === Array)
var auth = entry.author[0];
if (auth)
comment.author =
name: (auth.name ? auth.name.$t : undefined),
profileUrl: (auth.uri ? auth.uri.$t : undefined),
avatarUrl: (auth.gd$image ? auth.gd$image.src : undefined)
;


if (entry.link)
if (entry.link[2])
comment.link = comment.permalink = entry.link[2].href;

if (entry.link[3])
var pid = /.*comments/default/(d+)?.*/.exec(entry.link[3].href);
if (pid && pid[1])
comment.parentId = pid[1];



comment.deleteclass = 'item-control blog-admin';
if (entry.gd$extendedProperty)
for (var k in entry.gd$extendedProperty)
if (entry.gd$extendedProperty[k].name == 'blogger.itemClass')
comment.deleteclass += ' ' + entry.gd$extendedProperty[k].value;
else if (entry.gd$extendedProperty[k].name == 'blogger.displayTime')
comment.displayTime = entry.gd$extendedProperty[k].value;



comments.push(comment);


return comments;
;
var paginator = function(callback) {
if (hasMore()) {
var url = config.feed + '?alt=json&v=2&orderby=published&reverse=false&max-results=50';
if (cursor)
url += '&published-min=' + new Date(cursor).toISOString();

window.bloggercomments = function(data) {
var parsed = parse(data);
cursor = parsed.length






  1. মোঃ হারুন-অর-রশিদJul 23, 2015, 8:31:00 PM

    Very informative post. Thanks Brother....


    ReplyDelete








  2. Nivedita BJul 24, 2015, 1:27:00 PM

    My question is related to this, but slightly out of the locus. I tried finding a solution on your forum as well. I have a blogger blog with blogger's own default custom mobile display on. But, I need a mobile responsive related posts widget. The one which had been posted on your forum is not working. It would be nice if you could share something like you you guys are using.

    Being not tech savvy, your blog has a saviour. I would highly appreciate if you could note this request.


    ReplyDelete


    Replies





    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:20:00 PM

      Hi Nivedita,

      You can install responsive widgets and follow the above tutorial only if you are using Custom Responsive Template and not using the blogger default mobile display.

      If you have a custom responsive template then you can install the "Related Posts" widget we have shared in this blog else you may follow this tutorial series until you have setup a fully Responsive Custom Blogger template


      Delete








    2. Nivedita BJul 26, 2015, 12:20:00 PM

      Thank you Mohammad.


      Delete





    3. Reply









  3. PIX PNGJul 25, 2015, 2:31:00 AM

    Hi, Good Job, Mustafa Bahi
    if i "Disable rendering of JavaScript and Widgets" to my blog, is this helpful to good mobile display result. i am using blogger mobile friendly settings. plz tell me what i do to set my template like you. because your blog fully show on mobile device and this is good for SEO etc... i hop you publish full tutorial about this topic. because every one your blog reader waiting for this :)

    Best Wishes


    ReplyDelete


    Replies




    1. Mohammad Mustafa AhmedzaiJul 25, 2015, 3:21:00 PM

      Once the above tutorial series is complete you will get answers to all your questions. It is the only thing needed to create a custom responsive blogger template :)

      I am trying my best to complete it the sooner possible


      Delete




    2. Reply









  4. okogie davidSep 1, 2015, 6:58:00 PM

    pls help i change my blog template to a premium template and now i can no longer hide widget on mobile view using


    ReplyDelete








  5. Shafat AhmadSep 5, 2015, 9:20:00 AM

    Thank you very much for such a nice tip...i was able to disable/hid some widgets from the sidebar which actually were slowing down the page. On Google Page Speed Insights, mobile score increased to 61(from 54) which is actually not too bad. You can find my blog here http://www.windowshive.com


    ReplyDelete








  6. AtoZ djDec 13, 2015, 9:08:00 PM

    Before my site very slow in android devices i do with your instructions it loads very fast thanks for sharing with us. Thank You Very Much i need this one for my site very helpful to me www.atozDj.in


    ReplyDelete








  7. Abdullah Adil MahmudJan 22, 2016, 7:57:00 PM

    How should I use @media tags? I mean, which codes should I place in it to adjust sizes of devices? These posts are helpful. But, I'm in fix on this issue.


    ReplyDelete








  8. Mississauga ElectricianMar 5, 2016, 2:32:00 PM

    "official blogger widget scripts load only when the HTML loads so you don't need to worry about widgets like PopularPosts, archives, Poll, Comments, Label List etc." -------- does this mean that to disable rendering of an official blogger widget I only need to disable its widget without worrying about disabling its script code?


    ReplyDelete








  9. Ervan RepanaAug 28, 2016, 9:19:00 PM

    Sir i don't find between head tag a script slide show wodget script on my template


    ReplyDelete








  10. Devendra GehlodSep 23, 2016, 5:02:00 PM

    hi i have put this code on my site but not working show widget on mobile true but it not shown on mobile as well desktop site.


    ReplyDelete




Add comment


Load more...












BLOG_CMT_createIframe('https://www.blogger.com/rpc_relay.html');







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto