1stwebdesigner |
| Put Your Website on a Diet with Minifiers Posted: 01 Feb 2012 01:00 PM PST Did you know that every second delay on page loading results in a 7% reduction of conversion rate? Actually you lose 7% (maybe even more!) of sales without even noticing… Sounds bad, huh? I mean, you work carefully to put things in the right place, good call-to-actions, nice design, spend a few bucks with ads.. And then you lose 7% of sales just because you forgot to minify your CSS. We’ll, this is not going to happen again. We’ll put every future project that you work on a diet. And this one, won’t wait for next monday, or next january :) Here we’ll see amazing tips to reduce your files size and increase your site performance without affecting important things like image quality or a files readability for future edits. Grab your meter and let’s rock!
Every Second CountsBefore the practical stuff, I would like to share with you a few numbers about page loading X users satisfaction. I saw this infographic several months ago, but it’s still amazing. Click on it to see all the data, here’s what I liked most:
Credits: Kissmetrics Image Optimizing – File formats & ToolsSo, the best way to optimize images starts with using the right file format. Basically we have 3 common formats for web (no, I won’t talk about .bmp, .svg, .tiff or anything else):
This is really just the basics, there is a lot of particularities for each image type that we won’t be talking about (right now). But you should be good with this, when you are exporting a psd to code a layout you should use .jpg for photos or bigger backgrounds, use .gif for smaller elements or elements with a restricted color palette (like simple icons or replacements for common inputs) and png where you can’t lose any data or small colorful images. I know many people say that png are bad and too big, but actually if you know how to use them they can give you a better effect (exactly what you designed) AND smaller or similar file size as gif or jpg. Let’s see some tips for each image type: JPG MinimizingJPG does “lossy compression”. That means that its algorithm stores data using much less disk space but will also save less info about your original file. Once compressed it’s impossible to decompress .jpg files. Your best choice in this case is to always keep the original file safe and just save copies. Ideal quality for jpg is pretty tricky, but most times you’ll be good with 60-80. When you take photos your camera stores metadata about the photo that you may not use in future. Also image size is often bigger than your entire screen. So get rid of useless data and reduce your image to what you really need. Irfranview is a small tool that can do this for you even as batch conversion for lots of files. Recently I heard about an amazing tool, called JPEGmini. They have an amazing compression algorithm that works pretty much like our eyes do, so it makes what gets our attention higher quality and what doesn’t, lower. You should give it a try! GIF MinimizingGIF files have a really small color table, ranging between 2 and 256. 256 may sound a good figure, but when you realize that jpg has up to 16 million colors, 256 isn’t that good, huh? What you can do to cut files size is to reduce their color palette. Above is an example where reducing a file from 128 to 64 colors we saved almost 30% of file size. PNG MinimizingPNG compression is similar to gif compression. You reduce the color palette and gain a few kbytes. In above example, png-24 instead of png-8, would be a huge file since it’s completely lossless, so you would have a perfect image, but pretty big. The best part of png-24 is full alpha channel, but we can handle that. Image Alpha gives us full alpha channel over PNG-8, so we have much smaller files but pretty good-looking for overlays and advanced effects. Code Compressors – HTML, CSS, JSActually I’m not too much a code-compresser type. But images aren’t the only thing we should care about in our websites, HTML, CSS, JS files should be compressed too since they can eat precious bytes from your diet. Let’s take a look at a few options: minify – PHP solutionHTML CompressorYUI compressorHTML MinifierServer cachingAnother good way to improve site loading is server-side caching. If you don’t use cache your page needs to be processed by the server every time it’s accessed, even if you don’t change your site for ages. So, here are the best WordPress Caching plugins: WP Super CacheW3 Total CacheDB Cache Reloaded FixGZip, a.k.a. Compression Like a BossI’m pretty sure you’ve heard about zip files. Or maybe .rar files or .7z files. Well, GZip is an implementation of GNU Zip, which does pretty much the same thing as ZIP files, but gives you a really good compression rate. The crazy idea here is to drastically reduce download time by sending users compressed files, instead of the uncompressed original ones, and their browser will handle the decompressing in much less time than if it had to download original files. Your hard work here is to paste this code into you .htaccess file: #Gzip <ifmodule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </ifmodule> #End Gzip Then you’re done! Well, hope it doesn’t take you more than 5 minutes :) |
| Divine Elemente Review and Contest: A PSD to WordPress Theme Software Posted: 01 Feb 2012 02:00 AM PST It appears that the world has just gotten better with the introduction of Content Management Systems like WordPress and their customizable themes, but in order to create a fully functioning WordPress theme you’ll need to be knowledgeable in both programming and design, right? Many people don’t have all the required knowledge and skills to build a custom theme from scratch, and that includes yours truly. There are many designers out there with great concepts for themes, but their works only remain as JPEGs or PSD files. Good thing there is Divine Elemente that can semi-automatize the conversion of your PSD to a functioning WordPress theme. Don’t forget to read through, there’s a CONTEST waiting for you here. Winners will receive a License key! We will be choosing 3 winners! Brought to you by Divine-Project.com.
Note: To begin with, you will be seeing a lot of product and service reviews from now on. I would just like to point out that we take this seriously and we review them absolutely for free when we deem the product to be very useful and innovative. If you are a developer or know someone who is, that has an awesome product/service then contact us! Divine’s Elemente is a new program that is still under careful development and is definitely a one of a kind program that many designers have been dreaming of since WordPress became mainstream. Open Google and search "PSD to Theme" and you’ll end up seeing Divine-Project.com as the top result, followed by services like CodeMyConcept that you have to pay for. Previously, the main go-to guy for designers are coders or services like CodeMyConcept. I have to admit that when I first heard about Elemente and what it does, I was skeptical. I mean, people once thought it would be quite impossible to use drag-and-drop software to create a website, right? The first thing you need to have is the creativity to design, then you need to have Adobe Photoshop. Currently Elemente only supports Adobe Photoshop. When you already have your design in place, the only thing you need to do now is to convert it. What I Like About Elemente1. It’s cool design. Black and aqua (pardon my ignorance, I can’t specifically name the colors). This is more of a personal opinion. I’ve grown tired of software interfaces having only black and white. Elemente’s design is refreshing, and sometimes even soothing. 2. Spoon feeding. No coding required. Literally everything you might write in a CSS or PHP file is already in here. Including adjusting the size of the template, size of the content area, header, and sidebar. 3. Solid documentation and an active online community. 4. You can literally create a WordPress theme in less than 5 minutes if you already have the design. I have no problems with Elemente, aside from the pricing which I cannot afford, but that is just me. It only works on Windows, but there are talks that they’re working on making it available for Mac. Pricing starts from $139 for a personal license and $199 for Theme Developers, having unlimited website accounts and a 90% commission on the Themes Marketplace. Wait, they have a Themes Marketplace? Yes. You can actually make a living just creating themes and selling them in the marketplace. You can even sell your themes on other marketplaces like ThemeForest, although I believe you’ll have to do some customizing to be in line with their guidelines. Elemente is not hard to learn, all of the things you need to know are laid out in front of you, all you have to do is read first before trying anything or risk the chance of getting lost. How it works |
| You are subscribed to email updates from 1stwebdesigner - Graphic and Web Design Blog To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |
Niciun comentariu:
Trimiteți un comentariu