Images in websites help break up long, boring passages of text and make websites look nice. But, they’re also the heaviest resources you can include in your site. Let’s take the home page of techcrunch.com as an example. With the Google Chrome inspector open to the Network tab and the Images label selected, we load the page and scroll all the way to the bottom (because images are load dynamically as they appear in the viewport). The result in 6.5 MB out of a total of 7.3 MB of data to load the home page came from images alone. That’s a whopping 89% of the page load. Because the images are loaded dynamically as needed, techcrunch.com doesn’t load too slowly. However, there are still many websites that are image heavy and don’t do a good job at optimization or caching at all.
If you’re looking for a simple, free, secure email client that supports PGP on Windows, Gnu4Win is a good one.
Recently, I upgraded my version of PHP from 4.6 to 5.5.6. I had been using the PHP APC cache to improve performance. I’m using the Yii PHP framework and the settings I had in main.config were
‘cache’ => array(
‘class’ => ‘system.caching.CApcCache’,
PHP 5.5+ now includes a built-in Zend Optimizer opcode cache so the APC cache is no longer supported. As such, my Yii main.config settings needed to change to
‘cache’ => array(
‘class’ => ‘system.caching.CDummyCache’,
in order to work.
When building a website, you’ll often encounter situations where the title of a section would be just a little too long causing the last word to wrap. Furthermore, this wrapping may only occur in some browsers. You may be inclined to put a BR tag before two or more words so that the title doesn’t look bad but there’s a better way using the CSS whitespace rule.
Create a CSS class as follows:
and then use it where you would otherwise put a BR tag, e.g.