Recently I came across Google’s PageSpeed checker extension for Chrome’s developer tools. Page speed in general has always been a common sense thing for me. I think that is one skill that developers who grew up in the dial-up era vs the broadband era understand a little better than most. With that said I’ve apparently gotten very lazy! Nearly all my website properties were testing awfully low and slow.
The increase of widely available high-speed internet is breeding a NEW type of user. This new generation of user is far less patient. Your websites MUST be quick and fast or they move on. Google recognizes this. While there is some debate about your page speed affecting your SERP (Serach Engine Results Page) rank it just makes efficient sense to do everything you can for your clients and yourself when it comes to speed. Why would Google make all of these speed tools and give you graphs about speed inside their Webmaster Tools if it wasn’t a factor?
This video from Google explains gzip in some simple terms.
I tried to find any reason to NOT use gzip in this day and age.
There is NONE!
Apache users can simply put these lines in an .htaccess file at the root of there website directory. This covers most of your bases.
1 2 3 4 5 6 7 8 9 |
AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript |
PHP has a nice gzip object that will detect the browsers available compression type and serve up the page accordingly. I just add this line to the top of any PHP files in my web projects.
1 |
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> |
Optionally you should be able to add: AddOutputFilterByType DEFLATE application/x-httpd-php text/html to the .htaccess code above but I have not tested it.
I’m not one but it looks pretty straight forward. Maybe this Stackoverflow thread will help you.
During my testing a spent a great deal of time wondering WHY the PageSpeed tool was constantly telling me my JS and CSS weren’t being compressed. Nearly every other gzip testing utility was telling me they were. In the end I couldn’t figure it out and eventually they went away. If you are worried just try another tool like http://gzipwtf.com/
I obviously violate a few of these rules but that doesn’t mean you have to!
Cool little tool for people who work late at night and have brain trouble.
Just wanted to help out anyone else who is using WooCommerce with an old not supported template. The instructions from The Woo folks blinded me to a painfully obvious solution to my problem.
I followed the instructions by duplicating page.php to woocommerce.php and replacing “the loop” with:
1 |
<?php woocommerce_content(); ?> |
But I was still not having my “Individual Product” pages being processed though the WooCommerce loop at all. They were being treated like regular posts.
The light bulb FINALLY went off that my old template had a “single.php” file and that WooCommerce products were a custom post type of “product.”
So I duplicated my single.php to single-product.php (for the custom post type)and replace “the loop” with:
1 |
<?php woocommerce_content(); ?> |
PRESTO! My individual products were now working!
So in the end if you have an old template you might need to make TWO files and not just the one:
page.php -> woocommerce.php
single.php -> single-product.php
If anything I hope this gets into the ether. I google’d forever and couldn’t find squat about my problem. WooCommerce is pretty awesome though once you get the hang of it.
In our house we have an iPad 3 and the Asus Transformer Pad Infinity. I also have an 8 year old little girl that is constantly wanting to play games with me (both a blessing and a curse I assure you). She is still a kid and I don’t really need her to be submerged in the world of PC gaming so that leaves us with the tablets/phones. These are the games I’ve found that we can play together.
![]() |
MinecraftMinecraft is our number 1 pick usually. She can run around and play pretend things while I work on the fortress and slay zombies. |
![]() |
Toss The BallA nice throw back to Skee Ball. She might not ever experience a good game of Skee Ball and the “Boss-Walk” through the arcade with a fist full of tickets. This is as close as we get for now. |
![]() |
Mini-motorIt reminds me of Micro Machines. I’m not sure they even make them anymore but it was as close to a real life SIMs as you could get when I was a kid. It is a fun top down racer. It took her a little while to master the controls and now she beats me all the time. |
![]() |
Muffin KnightWe just got this one. You bounce around as two little guys on the screen and collect muffins to upgrade yourself to the different classes. |
http://mashable.com/2011/11/25/iphone-android-multiplayer-games/