Copyright © if not true then false. All Rights Reserved. Snowblind by Themes by bavotasan.com. Powered by WordPress.

Posts Tagged ‘ CSS ’
Adobe Apache Applications Bash CentOS Coding Command line CSS Database date Fedora Firefox Gnome Google Guide Howto HTML JavaScript KDE Links Linux MySQL News Perl PHP PostgreSQL PostgreSQL Partitioning Programming Programs psql Red Hat RHEL Security SQL Styles Terminal time Tips Tricks Tweets Twitter UNIX Windows XFCE Yum

It makes sense to optimize the site's cascading style sheets (CSS), as it pages load faster, and it reduce the amount of data transferred, and just combining css files could significantly reduce requests to server. So users benefit from faster page loads and webmaster of the sites benefits from the cheaper price of the transferred data.
I have used CSSTidy on many projects. And CSSTidy is very good tool for packing CSS and it can even fix CSS errors. Sometimes, however, feel that csstidy is even a bit too wide and "heavy" tool for the CSS files packing. Thats why I decide to write my own simple PHP class for the CSS files packing.
I did some tests and it appeared that actually all the unnecessary comments, spacing and line breaks are consuming the most space. So I did simple PHP class that remove comments, white spaces, tabs and line breaks. This class can be used directly on web pages to print compressed and combined CSS files or on the command line to compress and combine files to one CSS file.
» Continue Reading "CSS compression with own PHP class VS CSSTidy"
Browser cache is very useful when users download the same CSS and JS files multiple times. Some browsers, however, use the old CSS and JS files from the cache, even though they have been updated. This may lead to unpleasant situations, when the pages are displayed to the user with the wrong styles or pages will work incorrectly.
Fortunately, these unpleasant situations is easy to avoid and let the browsers cache files as long as they are changed.
» Continue Reading "Prevent the browsers to use old cached CSS and JS files"
