Optimize Website Load Time | Compression Tools and Techniques

While making websites we often consider using a lot of scripts and styles in order to increase interactivity and make the website richer. As a result, we end up with slow website, while you can of course remove those scripts and styles to make it load faster Or you can make is load faster without removing any functionality by doing some easy tricks.

Compressing JavaScript

While compressing JavaScript is most recommended and has a great impact in website load time(Generally they are already compressed for many jQuery plugins). There are many tools and methods using which you can compress JavaScript, few most common tools are Yahoo’s YUI Compressor, Dean Edwards’ Packer, Douglas Crockford’s JSMin, Dojo ShrinkSafe and gzip or htaccess(explained later), these things may be sounding strange, but using them is very easy. These JavaScript minification tools preserve all the features of the JavaScript code, but reduce the code size by compressing them. There is no ‘best’ JavaScript compressor, each one of them have  their plus and minus, but you can always compare between the compressors at http://compressorrater.thruhere.net/, its really a nice tool.

Compressing CSS

CSS compressing is also a good technique to optimize website’s load time, there are many CSS minification tools too. Here is a great article on Design Shack for CSS Minification, you should definitely head over: 18 CSS Compression Tools and Techniques and one more at Cats Who Code which explains how you can do it just by PHP: 3 ways to compress CSS files using PHP.

gzip and htaccess

Understanding simply, if you use gzip or htaccess compression, what happens is your website files gets compressed, and the compressed files are send over to the web browser, and the web browser extracts it and shows it to the users. It reduces response time by reducing the size of the HTTP response, this trick is definitely beneficial. There are many tutorials for gzip compression, a good one is at Samuel Santos’ blog: Improving web performance with Apache and htaccess.

Compressor Tools

There are many websites where you can compress your code, here I am including some of the noteworthy ones.

CSS Drive Gallery- CSS Compressor

CSS Drive Gallery  CSS Compressor


Compress javascript and css. Amazing code compression. Quick easy and free



Javascript Compressor

Javascript Compressor   compress code online for free

CSS Compressor

CSS Compressor   Online code compressor for Cascading Style Sheets

Minify/Pack Javascript Online

Minify Javascript Online   Online JavaScript Packer

Online YUI Compressor

Online YUI Compressor

Performance Tools

There are few extensions/add-ons too using which you can check the performance of your website and suggests ways to improve the performance. One of them is YSlow by Yahoo, it has a Firefox Add-on as well as a Chrome Extension. There is one more web based tool Page Speed Online hosted at Google Labs, which is equally good. There is also a simple gzip test tool: GIDZipTest.


Our website’s performance is an important factor, and one of the main things in it is the website load time, if our websites are slow, there are chances that user won’t return. Also, these compression techniques are easily doable by editing the .htaccess file or by adding simple snippets using php or using those web based tools. Thus, you should definitely consider doing these tricks.


jFlow Plus: Awesome WordPress Slider Plugin

jFlow Plus is a very cool jQuery slider been since a while, it is based on jFlow by ktan, though implementing these kinds of jQuery plugins isn’t very difficult, but implementing on WordPress at times get messy, especially if the user frequently changes/customizes their WordPress themes. So to overcome these, I made a WordPress Plugin for easy implementation of jFlow Plus, it does not modify the theme or any other gallery and works separately and is very easy to implement, the width and height of the slider can be changed from the settings menu in the WordPress Dashboard along with autoplay option and time to transition one slide. You can head over to its Release Page or go to http://wordpress.org/extend/plugins/jflow-plus/ for downloading it.

Dummy Content for Websites

When making or developing websites, web designers often need sample content and creating sample content again and again is a chore. Thankfully there are couple of places where we can get dummy content for our websites, we just need to copy and paste them and showcase it to clients and some tools too which create dummy contents in a click for your CMS.


html ipsum
Here you can get preformatted sample HTML content, it has various formats like ul, ol, table, form etc. I think this website is really handy while making websites, especially because of the dummy content’s multiple formats, you should head over and check it out definitely.

For WordPress

Lorem Ipsum Test Post Pack
While there are many dummy content import files for WordPress, but there is no use for a dozen of them if one does the job fine, you can head over to WordPress – Lorem Ipsum Test Post Pack and check it out. The Test Post Pack has formatted text for 30 posts, test pages, categories, sub categories, etc. Alternatively, you can also try out WP Dummy Content plugin.

Dummy Content Generators

Fillerati – Faux Latin is a Dead Language

Fillerati - Faux Latin is a Dead Language
I you are bored of using Lorem Ipsum in your websites then you can try this website, the website is made using HTML5. Rather than Lorem Ipsum text, this website gives extracts from English literature.

Dummy Text Generator, Lorem ipsum for webdesigners

Dummy Text Generator, Lorem ipsum for webdesigners
This website helps you create dummy content in various formats and layouts.

Dynamic Dummy Image Generator – DummyImage.com

Dynamic Dummy Image Generator - DummyImage.com
This website creates images of custom dimensions and allows you to chose between background and foreground colors, you can even add dummy text, use multiples formats(.jpg, .png, etc) and do a lot more. For me it is a really nice tool.

Placehold.it – Quick and simple image placeholders

Placehold.it - Quick and simple image placeholders
Something like DummyImage.com only.

Fix Facebook Like Using WordPress Plugin

I saw a lot of websites and blogs having incorrect data shown up in user profiles who liked their page using the facebook like(Or recommend) button, incorrect data like wrong thumbnail, wrong description and sometimes even wrong title. After a little research I came to know it can be easily corrected by implementing Facebook Open Graph protocol in your website.

Open Graph protocol allows you to specify structured information about your web pages. Here’s an example for a movie page(Taken from here):

{code type=HTML}
<html xmlns=”http://www.w3.org/1999/xhtml”
<title>The Rock (1996)</title>
<meta property=”og:title” content=”The Rock”/>
<meta property=”og:type” content=”movie”/>
<meta property=”og:url” content=”http://www.imdb.com/title/tt0117500/”/>
<meta property=”og:image” content=”http://ia.media-imdb.com/rock.jpg”/>
<meta property=”og:site_name” content=”IMDb”/>
<meta property=”fb:admins” content=”USER_ID”/>
<meta property=”og:description”
content=”A group of U.S. Marines, under command of
a renegade general, take over Alcatraz and
threaten San Francisco Bay with biological



I made a WordPress plugin for easier implementation of Open Graph protocol. This plugin fixes wrong thumbnail (og:image), wrong title (og:site_name), wrong description (og:description), etc. It enforces WordPress post thumbnail for image if a post is liked, or your website’s logo if home page is liked and a lot more, you can visit the plugin’s release page at https://priteshgupta.com/plugins/fix-fblike, or download it from WordPress.org at http://wordpress.org/extend/plugins/fix-facebook-like/.

It customizes the following Open Graph protocol properties og:title, og:type, og:url, og:image, og:site_name, fb:admins, og:description.

Here is a screenshot of settings menu in the admin panel for customization(Click for larger image).

Elegant Press Website Template Version 1.0 Now Available

So I have finally completed my website template “Elegant Press”, it has been made using HTML5 and CSS3, it is cross (modern)browser compatible, has web fonts, jQuery plugins, etc. Overall, its awesome and totally free! Its licensed under New BSD License, read more about it here, you should surely give it a try. You can see its release page at https://priteshgupta.com/templates/elegant-press/, you can download it for free from there.

Feel free to share and use it. You are free to use it for your personal as well as commercial projects as it is released under New BSD License. If you have any issues related to it, you can contact me via the contact form at https://priteshgupta.com/contact/. Please note this theme is not made for older browsers and looks funny on them, but who cares?

Here is a small preview, go to the release page for full details.
Elegant Press
You can see the live preview here and download it from here.

CSS3 Magnification / Enlarge / Scale Effect

In this article I will share how we can have pure HTML5 magnification or enlarge or scale effect for various elements in a web page, with easing effects, by only using CSS3, that is without using any JavaScript or jQuery Plugin, of course a modern web browser(Recent Firefox, Chrome, Opera, Safari) will be needed for it. The live demonstration of this can be seen at the end of this post.


The CSS has 2 parts, one for default effects and the other one for hover effects, following are the CSS snippets:

Default CSS for the element

{code type=CSS}
-webkit-transition: all 200ms linear;
-moz-transition: all 200ms linear;
-o-transition: all 200ms linear;
transition: all 200ms linear;
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);

Hover CSS for the element

{code type=CSS}
-webkit-transform: scale(1.1) translateZ(0);
-moz-transform: scale(1.1) translateZ(0);
-o-transform: scale(1.1) translateZ(0);
transform: scale(1.1) translateZ(0);


When the above snippets will be implemented correctly, they will give you the magnification / enlarge / scale effect, I am also including a demonstration for how it will look live. I have used the above two CSS codes for the headline and the image.

Alternatively, you can see it here.

Further Reading

You can also try out ImageLens which is a jQuery plugin for giving lens effect while zooming images. Also, below are the pages of CSS properties used in above snippets.
[unordered_list style=”arrow”]


Redirect Blogger Without Warning Page

I moved from Blogger.com to WordPress.org long ago, but it was recently I realized that my Blogger Blog was also getting some traffic, which I didn’t wanted(since the content there was obsolete). There is no clear method to redirect your Blogger Blog to new URL, I first tried Setting >> Publishing >> Custom Domain >> Switch to advanced settings and writing my domain in “Your Domain” text field(Though this has to work when you host your Blogger Blog on a Custom Domain), but it gave me a Warning Page for redirecting. But soon I was able to figure out that I can redirect my Blogger site to custom domain without any warning page using a simple JavaScript code or a meta tag.
Redirecting Blogger

Meta Tag Method

If you want to redirect your Blogger Blog using a Meta tag, then you can use the below code. Replace DOMAIN with the full URL of location where you want Blogger to be redirected, the content attribute determines the time delay in redirection.
{code type=HTML}


JavaScript Method

If you will like your Blogger Site redirected using JavaScript, then you can use the below code. Again replace DOMAIN with the full new URL. Please remember if JavaScript is disabled then Meta Tag method will only work.

{code type=HTML}


More Resources

If you have moved to WordPress.org and want 301 like redirects, then you should probably use the plugin Blogger To WordPress Redirection

5 Free Alternatives to iTunes for your iPod / iPhone

Yes, other than iTunes, there are few more softwares too which can manage your iPod/iPhone efficiently. iTunes at times can have compatibility issues, like if you are on Linux or an older windows like Windows XP SP1, then iTunes just wont install for you. Also, iTunes is a heavy tool, where most of it’s alternatives are lite applications. Below are 5 Free iTunes Alternatives for your iPod / iPhone.

Note: Please be careful when using these tools, you might lose all of your iPod data, also, these softwares are not very good in syncing your iPod but do great in manually managing your iPod. Also, some of these might not support new iPods(Like iPod Touch) or new iPhones.


Winamp Media Player - MP3  Video  and Music Player - Winamp









Design Kindle: Awesome Website for Free Web Design Files

Design Kindle is a community driven web design resources website which offers premium quality web design files like graphics, vectors, icons, textures, etc for absolutely free with no required membership. Isn’t this awesome? Thats not all, all the stuff here is royalty free and we are free to use them in our personal and commercial projects, without the necessity of linking back to them.You can visit the website at http://www.designkindle.com/. I personally liked their free graphics collections a lot, they are totally amazing and very useful in creating websites.

If you know any other website like this, feel free to share.

Best Websites for Stock Free Photos

We quite often need to use images for our websites or blogs and for getting legit images we always end up buying them, and spend a lot of $. But there are many websites on Internet which offer free Royalty Free Photos. I sharing some of the best websites which offer Free Stock Photos. Please drop by if you know any other too.


stock.xchng - the leading free stock photography site

Getty Images

Royalty Free Images   Photos  Unlimited Use   Getty Images


Free Photos - Free Images - Royalty Free Photos - Free Stock Photos - FreeDigitalPhotos.net


morgueFile free photos for creatives by creatives

Corbis Images

Corbis Images – Premium Quality Stock Photography and Illustrations


everystockphoto - searching free photos

Public Domain Pictures

Public Domain Pictures - Free Stock Photos


Stockvault.net - Free Stock Photos and Free Images


Stockvault.net - Free Stock Photos and Free Images


Free Stock Photos at freerangestock.com - Totally Free Stock Photography and Textures

Stock Images on deviantART

Stock Images on deviantART


Welcome to Flickr - Photo Sharing

Dreamstime’s Free Stock Images and Photos

Dreamstime - Download Free Stock Images and Photos

Fotolia’s Free Stock Images and Photos

Fotolia's Free Stock Images and Photos

iStockphoto’s Free Stock Images and Photos

iStockphoto's Free Collection

Creative Commons Search

Creative Commons Search