{"id":13187,"date":"2015-03-06T05:06:54","date_gmt":"2015-03-05T18:06:54","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=13187"},"modified":"2019-10-11T11:35:17","modified_gmt":"2019-10-11T01:35:17","slug":"google-pagespeed-and-firebug-mobile-friendly-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-pagespeed-and-firebug-mobile-friendly-primer-tutorial\/","title":{"rendered":"Google PageSpeed and Firebug Mobile Friendly Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MobileFriendly_LandingPage.jpeg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Google PageSpeed and Firebug Mobile Friendly Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/HTMLCSS\/MobileFriendly_LandingPage.jpeg\" title=\"Google PageSpeed and Firebug Mobile Friendly Primer Tutorial\" id='ilpmfpt' onmouseover=\"  this.src=this.src.replace('.jpeg','.xjpg').replace('.jpg','.xpng').replace('.png','.xgif').replace('.gif','.xjpeg').replace('.x','.');   \"  \/><\/a><p class=\"wp-caption-text\">Google PageSpeed and Firebug Mobile Friendly Primer Tutorial<\/p><\/div>\n<p>The job of making web pages mobile friendly can be approached from a few different angles, and is a job that definitely benefits from having a good set of tools and &#8220;tool combinations&#8221;.<\/p>\n<p>Say &#8220;tool combinations&#8221; because have found the Google PageSpeed Insight tool at <a target=_blank title='Google PageSpeed Insight' href='https:\/\/developers.google.com\/speed\/pagespeed\/insights'>this webpage<\/a>, combined with Firefox and its <a target=_blank title='Firebug' href='https:\/\/getfirebug.com\/'>Firebug<\/a> add-on, a really powerful combination.<\/p>\n<p>The Google PageSpeed Insight tools not only measure a webpage&#8217;s speed but can also give a report on the Mobile (or Desktop, for that matter) friendliness of that webpage, giving a score out of 100.<\/p>\n<p>This also serves as an independent view of your webpage, without you falling into the trap of being too optimistic &#8230; though a bit of optimism can be a good thing &#8230; doh!<\/p>\n<p>So that&#8217;s the plan, and today we put this plan to use on this domain&#8217;s <i>&#8220;landing page&#8221;<\/i> and its cohorts, which are all written in HTML\/Javascript\/CSS, and which use an <a target=_blank title='iWeb Mac application' href='https:\/\/www.apple.com\/au\/support\/iweb\/'>iWeb<\/a> (by Apple) theme, so am thinking some of the observations may be directly useful for some webmasters out there, perhaps?!  We talked about iWeb with <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=6910\" title=\"iWeb Primer Tutorial\">iWeb Primer Tutorial<\/a>.<\/p>\n<p>At first we tried a CSS and <i>&#8220;meta tag viewport&#8221;<\/i>, only, approach to the improvements, but it ended up being better to use Javascript as a solution mechanism.   So we created some <i>&#8220;onload&#8221;<\/i> event code for each of these webpages as below &#8230;<\/p>\n<p><code><br \/>\nfunction widthfix() {  \/\/<br \/>\n if (navigator.userAgent.match(\/Android|BlackBerry|iPhone|iPod|Opera Mini|IEMobile\/i)) { \/\/ it is a mobile device<br \/>\n   document.getElementById('body_content').style.width='100%';<br \/>\n   document.getElementById('nav_layer').style.width='100%';<br \/>\n   document.getElementById('widget0').style.width='100%';<br \/>\n }<br \/>\n}<br \/>\n<\/code><\/p>\n<p>Please feel free to visit the www.rjmprogramming.com.au <a target=_blank title='Landing page' href='http:\/\/www.rjmprogramming.com.au\/'>landing page<\/a>, and its <a style=\"color:pink;\" target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/About_Us.html\" title=\"About Us\">s<\/a>i<a style=\"color:blue;\"  target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Contact_Us.html\" title=\"Contact Us\">x<\/a> <a style=\"color:red;\"  target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Services.html\" title=\"Services\">f<\/a>r<a style=\"color:green;\"  target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/News.html\" title=\"News\">i<\/a>e<a style=\"color:orange;\" target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Guestbook.html\" title=\"Guestbook\">n<\/a>d<a style=\"color:purple;\"  target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Links.html\" title=\"Links\">s<\/a>, preferably on a mobile phone, to hopefully try the improved user experience for yourself.<\/p>\n<p><b><i>Stop Press<\/i><\/b><\/p>\n<p>The ideas above got a tweak in October, 2019 which you can read about on <a target=_blank title='Responsive Design Viewport Width Considerations Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/responsive-design-viewport-width-considerations-tutorial\/'>Responsive Design Viewport Width Considerations Tutorial<\/a> from 12th October, 2019.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d12711' onclick='var dv=document.getElementById(\"d12711\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=google\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d12711' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>The job of making web pages mobile friendly can be approached from a few different angles, and is a job that definitely benefits from having a good set of tools and &#8220;tool combinations&#8221;. Say &#8220;tool combinations&#8221; because have found the &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/google-pagespeed-and-firebug-mobile-friendly-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[91,438,439,513,529,576,643,652,680,723,725,795,798,997,1200,1319,1350,1356,1373,1418],"class_list":["post-13187","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-apple","tag-firebug","tag-firefox","tag-google","tag-google-pagespeed","tag-html","tag-iweb","tag-javascript","tag-landing-page","tag-mac","tag-mac-os-x","tag-mobile","tag-mobile-friendly","tag-programming","tag-stop-press","tag-tutorial","tag-user-experience","tag-ux","tag-viewport","tag-webpage"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13187"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=13187"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13187\/revisions"}],"predecessor-version":[{"id":46759,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/13187\/revisions\/46759"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=13187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=13187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=13187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}