<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; speed up site</title> <atom:link href="http://www.ghacks.net/tag/speed-up-site/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Fri, 10 Feb 2012 20:51:26 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Speed Up WordPress Page Loading Times By Removing l10n.js</title><link>http://www.ghacks.net/2011/10/25/speed-up-wordpress-page-loading-times-by-removing-l10n-js/</link> <comments>http://www.ghacks.net/2011/10/25/speed-up-wordpress-page-loading-times-by-removing-l10n-js/#comments</comments> <pubDate>Tue, 25 Oct 2011 12:19:05 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[page load]]></category> <category><![CDATA[speed up site]]></category> <category><![CDATA[webmaster]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=51927</guid> <description><![CDATA[I recently noticed that my WordPress blog&#8217;s page loading times increased through the roofs which made me reevaluate everything that contributed to the loading times of the website. I implemented a few changes on the blog to improve page loading times. I first got rid of the three social networking buttons pointing to Google Plus, [...]]]></description> <content:encoded><![CDATA[<p>I recently noticed that my WordPress blog&#8217;s page loading times increased through the roofs which made me reevaluate everything that contributed to the loading times of the website. I implemented a few changes on the blog to improve page loading times. I first got rid of the three social networking buttons pointing to Google Plus, Facebook and Twitter, and replaced them with the Add This script instead. The benefit here was that it reduced the external JavaScript code that needed to be loaded for the functionality from three to one.</p><p>I also noticed that articles with hundreds of comments were loading significantly slower than pages with less comments. This made me reduce the number of comments per page to 50 root comments (plus their answers).</p><p>Today I noticed that WordPress added another JavaScript to ever page. The script in wp-inlcudes/l10n.js that is related to the admin bar that the WordPress developers added to one of the recent versions of the blogging platform.</p><p>While it is a small file with a size of 233 bytes it is still a script that is loaded by anyone, not just the admin of the blog. This somehow does not make a lot of sense. The important thing here is that the blog needs to make the request to load the element, not the time it takes to load the 223 bytes.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2011/10/ghacks-page-objects.jpg"><img
src="http://www.ghacks.net/wp-content/uploads/2011/10/ghacks-page-objects-600x296.jpg" alt="ghacks page objects" title="ghacks page objects" width="600" height="296" class="alignnone size-medium wp-image-51928" /></a></p><p>WordPress administrators may want to remove the JavaScript element from being loaded by every blog visitor to speed up the blog&#8217;s page loading times. The easiest way to remove the l10n.js from being loaded with WordPress is to unload it in the functions.php file in the WordPress theme folder.</p><p>All you need to do for that is to add the following line of code to the end of the functions.php file.</p><p><code>wp_deregister_script('l10n');</code></p><p>Please note that this may disable part of the admin bars toolbar functionality. Users over at <a
href="http://wordpress.stackexchange.com/questions/5451/what-does-l10n-js-do-in-wordpress-3-1-and-how-do-i-remove-it">Stack Exchange</a> have found a way to keep the JavaScript loaded for administrators of the blog.</p><p>if ( !is_admin() ) {<br
/> function my_init_method() {<br
/> wp_deregister_script( &#8216;l10n&#8217; );<br
/> }<br
/> add_action(&#8216;init&#8217;, &#8216;my_init_method&#8217;);<br
/> }</p><p>Just add this code instead to the functions.php file.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/10/25/speed-up-wordpress-page-loading-times-by-removing-l10n-js/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Load Google+ Button Asynchronously For Faster Loading Times</title><link>http://www.ghacks.net/2011/07/27/load-google-button-asynchronous-for-faster-loading-times/</link> <comments>http://www.ghacks.net/2011/07/27/load-google-button-asynchronous-for-faster-loading-times/#comments</comments> <pubDate>Wed, 27 Jul 2011 08:59:45 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Google]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[Google Plus]]></category> <category><![CDATA[javascript]]></category> <category><![CDATA[speed up site]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=48287</guid> <description><![CDATA[Webmasters have really no choice but to add the Google+ button and other social networking buttons to their websites. Why? Because social signals will grow in importance in the coming years. These buttons can also be convenient for site visitors who would like to share a specific article or the whole website that they just [...]]]></description> <content:encoded><![CDATA[<p>Webmasters have really no choice but to add the Google+ button and other social networking buttons to their websites. Why? Because social signals will grow in importance in the coming years. These buttons can also be convenient for site visitors who would like to share a specific article or the whole website that they just discovered with friends, family or colleagues.</p><p>Every new button on the other hand increases the page loading time of a website. Most buttons make use of JavaScript. The three buttons here on Ghacks, that link to Facebook, Twitter and Google, all have their own JavaScript file that needs to be loaded during page loading time.</p><p>One of the things that webmasters can do to speed up the loading time is to combine JavaScripts, another to load scripts asynchronously.</p><p>Google recently announced that they have made their +1 button load faster on websites. The search giant enabled asynchronous loading for +1 buttons. This basically means that the JavaScript of the button gets loaded without interrupting the loading and rendering of the website it is embedded on.</p><p>Webmasters who would like to integrate the new button need to <a
href="http://www.google.com/webmasters/+1/button/#utm_source=adsense&#038;utm_medium=blog&#038;utm_campaign=async">visit the</a> Google +1 button generator at Google to generate the code for the new button.</p><p>The code for the old +1 button was placed in two locations. First at the location on the page where the button should show up and second in the site&#8217;s footer just before the closing body tag.</p><p>The new Google +1 button changes this slightly. You still add the tags to the location where you want the +1 button to appear on your site. The JavaScript code on the other hand needs to be placed after the last +1 tag on the page.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/07/google+1button-asynchronous.png" alt="google+1 button asynchronous" title="google+1 button asynchronous" width="561" height="489" class="alignnone size-full wp-image-48289" /></p><p>Just copy and paste the generated code into your site. You need to remove the old JavaScript from the footer of your website before you place the new JavaScript code into the site.</p><p>Webmasters who do not want or cannot integrate the new code into their website will benefit from rendering optimizations which can speed up the rendering of the button on a website by a factor of 3. This is automatic and independent of the button code that is implemented on the site. Additional information about the speed improvements <a
href="http://googlewebmastercentral.blogspot.com/2011/07/1-button-now-faster.html?utm_source=feedburner&#038;utm_medium=feed&#038;utm_campaign=Feed%3A+blogspot%2FamDG+%28Official+Google+Webmaster+Central+Blog%29">are available</a> on the Google Webmaster Central blog.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/07/27/load-google-button-asynchronous-for-faster-loading-times/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Why I disabled Google Analytics and WP-Cache</title><link>http://www.ghacks.net/2007/08/08/why-i-disabled-google-analytics-and-wp-cache/</link> <comments>http://www.ghacks.net/2007/08/08/why-i-disabled-google-analytics-and-wp-cache/#comments</comments> <pubDate>Wed, 08 Aug 2007 20:32:04 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[ghacks]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[google analytics]]></category> <category><![CDATA[loading time]]></category> <category><![CDATA[page load]]></category> <category><![CDATA[speed up site]]></category> <category><![CDATA[wp-cache]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2007/08/08/why-i-disabled-google-analytics-and-wp-cache/</guid> <description><![CDATA[I was planing to run some benchmarks on my website with various settings to find a result that would reduce loading time for my website for every visitor. I had one script and one plugin in mind that I wanted to test. The first one was the Google Analytics script which I used to be able to access site statistics on the Google Analytics website while the second was the wp-cache plugin for Wordpress which cached database requests but required that gz compression was disabled which resulted in a larger html file that was transferred to each visitor.]]></description> <content:encoded><![CDATA[<p>I was planing to run some benchmarks on my website with various settings to find a result that would reduce loading time for my website for every visitor. I had one script and one plugin in mind that I wanted to test. The first one was the Google Analytics script which I used to be able to access site statistics on the <a
href="http://www.google.com/analytics/">Google Analytics</a> website while the second was the <a
href="http://mnm.uib.es/gallir/wp-cache-2/">wp-cache</a> plugin for WordPress which cached database requests but required that gz compression was disabled which resulted in a larger html file that was transferred to each visitor.</p><p>I used the free <a
href="http://www.websiteoptimization.com/services/analyze/">Web Page Analyzer</a> script to test four settings and compare the results that were shown on the website. I did test the following settings:</p><ul><li>WP-Cache enabled, Google Analytics off</li><li>WP-Cache enabled, Google Analytics on</li><li>WP-Cache off, Google Analytics on</li><li>WP-Cache off, Google Analytics off</li></ul><p><span
id="more-1848"></span>Let me give you a few instructions about the images below:</p><p><strong>Object Type</strong> refers to all files that belong to a certain type such as HTML or CSS files.<br
/> <strong>Size</strong> is the total size of all files that belong to a certain type.<br
/> <strong>Download T1</strong> the total loading time for a T1 connection (1.54 Mbps) in seconds.</p><p>WP-Cache enabled, Google Analytics off:</p><p><img
src="http://www.ghacks.net/files/screens/2007/08/cacheon-analyticsoff.jpg" alt="wp-cache enabled, google analytics off" /></p><p>WP-Cache enabled, Google Analytics on:</p><p><img
src="http://www.ghacks.net/files/screens/2007/08/cacheon-analyticson.jpg" alt="wp-cache enabled, google analytics on" /></p><p>WP-Cache disabled, Google Analytics on:</p><p><img
src="http://www.ghacks.net/files/screens/2007/08/cacheoff-analyticson.jpg" alt="wp-cache disabled, google analytics on" /></p><p>WP-Cache disabled, Google Analytics off:</p><p><img
src="http://www.ghacks.net/files/screens/2007/08/cacheoff-analyticsoff.jpg" alt="wp-cache disabled, google analytics off" /></p><p>The results are quite obvious. Loading time is reduced quite a bit when I turn off WP-Cache and Google Analytics. The total loading time for a T1 connection is 1.86 seconds while it is 2.25 seconds if both options are turned on.</p><p>Users with slower connections will see a hugh decrease in total loading time in seconds which is absolutely what I wanted to achieve. There are however two aspects that I have to consider.</p><p>Turning off wp-cache reduces the loading time but increases the load on the server because mysql requests are not cached anymore. This could lead to troubles for sites that face lots of visitors, e.g. if your site makes it on the digg frontpage. I would suggest to turn on wp-cache again if that happens to be able to handle the load.</p><p>Turning of Google Analytics does not have any negative impact on your site but webmasters with no other statistics script have the problem that they do not have access to their statistics anymore. I&#8217;m using <a
href="http://awstats.sourceforge.net/">awstats</a> instead of Google Analytics on my server. If you are unsure contact your webhost and ask which script they are offering.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2007/08/08/why-i-disabled-google-analytics-and-wp-cache/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
