httpd.conf (or equivalent)
# Cache js and CSS files for 6 months - with a timestamp
<FilesMatch "\.(js|css)$">
ExpiresActive On
ExpiresDefault "access plus 6 months"
Header set Cache-Control "max-age=15552000"
RewriteEngine On
R… more »
Zend Framework - Navigation View Helper - Active Style Rules
The objective of these rules are to ensure only the active link is highlighted.
The key is the 'element>element' selector, which indicates that only a tags which have a parent of li.active will be affected by the rule.
#mainNav a
{
color:#888;… more »
Quick Sprite Builder
Sprites allow you to combine many images into a single file, reducing both the number of requests and bandwidth required to deliver pages.I had 51 images, each was about 10K, so the total was about 510K. These images had dimensions of about 250p… more »
Great New Web Resource
CoderZone.org launched recently.
It's great new resource for web people, from 'n00bs' to 'w00ts'. What makes it special:
A great team of moderators. These guys are experienced and know the web.
A library of code snippets, little bits of code t… more »
An Ounce of Performance and Prevention
The Wicked Good Gallery was a lot of fun to build. It meets the stated requirements, I like the design, and I learned some good stuff.One issue that always concerns me is performance. The Wicked Good Gallery demo has seven images, and on each page… more »
:: Next >>