[Devils Workshop] “Best Practices – Writing Efficient CSS For Faster Page Load” and 3 more... |
- Best Practices – Writing Efficient CSS For Faster Page Load
- Online Tip – Avoid spam with disposable E-mail account
- Check if you can run a game on your PC with Online Tool
- FoxyTunes – Control music applications on Desktop from your browser
Best Practices – Writing Efficient CSS For Faster Page Load Posted: 12 Jan 2011 04:30 PM PST In my previous CSS post I wrote about how one can remove unwanted CSS using Tech 1 and Tech 2. And this article contains few CSS tips that every CSS developer must know. Avoiding inefficient key selectors that match large numbers of elements can speed up page rendering. How to use CSS selectors EfficientlyID’s is the most efficient Selector whereas Universal Selector is the least efficient. There are four kinds of key selectors. Each of them are rendered with different efficiencies.
The browser reads the selector from right to left. It means that in the selector ul > li a the first thing interpreted is "a". This first part is also referred to as the “key selector”, it is the element being selected. Now below is few examples generally we use in our Stylesheet. When we use the child selector it is not very efficient to use, as it takes a lot of time to interpret.
Since ID’s are so efficient we would think the browser could just find that ID quickly and then find the li children quickly. But actually, the relatively slow li tag selector is run first. Tag qualify technique should be avoid because ID’s are unique, they don’t need a tag name to go along with it. It makes the selector less efficient. And it is better to avoid with the classes too even though they are not unique. We can make use of it in exceptional cases like li.first but that’s pretty rare.
Descendant selectors are the worst technique and most expensive. In other words it is the least efficient, for each element the CSS engine matches the key selector, the browser also have to traverse up the DOM tree, evaluating every ancestor element until it finds a match for the root element. The less specific the key, the greater the number of nodes that is to be evaluated.
Font-family cascades, so you may not need a selector to specify like specified in the 1st example. The 2nd one is as effective and far more efficient than the 1st one.
Do you find this article useful? Do let me know through your comments. Related posts:
-- This Post Best Practices – Writing Efficient CSS For Faster Page Load is Published on Devils Workshop . |
Online Tip – Avoid spam with disposable E-mail account Posted: 12 Jan 2011 07:30 AM PST Couple of days ago, Ankit Das reviewed a SEO tool called Traffic Travis. The software could be downloaded but to test it, I needed to register with an email address. I usually get sceptical of such sites that ask for email, because this is how your inbox can end up being spammed. 10 Minute Mail is a nice online service which creates disposable E-mail address for us to register and work. As the name suggests, the email account lasts for only 10 minutes. 10 Minute Mail Features
Over years there have been a lot of filters, court orders and more to deal with email spam. Fact is spam seems to just keep increasing. This is why I think it is better we use innovative services like 10 Minute Mail. What are your views ? Do drop in your comments. Link: 10 Minute Mail Related: Guerilla Mail Related posts:
-- This Post Online Tip – Avoid spam with disposable E-mail account is Published on Devils Workshop . |
Check if you can run a game on your PC with Online Tool Posted: 12 Jan 2011 04:57 AM PST Sometimes you wonder before installing a game to your system whether it can run on your system or not. Here is a website to check the game’s compatibility on your system. Can You Run It? It is a special service by Systemrequirementslab.com.This service is an online tool,using which you can check whether the game you brought from your friend or mate after installing will run on your system(computer) configuration or not.This works with Java and takes some time(not much justs a minute or less). How to check whether you can Run a Game on your system
Link: Can You Run It? Related posts:
-- This Post Check if you can run a game on your PC with Online Tool is Published on Devils Workshop . |
FoxyTunes – Control music applications on Desktop from your browser Posted: 12 Jan 2011 03:45 AM PST Is it always hard for you to change the music track on your computer while you are working on something important on your browser? If you are a Firefox user, this add-on shall be a great relief for you. Foxytunes integrates within your Firefox and let you play what you really want to. It supports a wide-range of players for almost all Operating system platforms including iTunes, Winamp, Window Media Player, JetAudio and Real Player. It even supports players exclusive to Linux OS such as XMMS and even iTunes for Mac OS. It has not even ignored Cross-platform players like YouTube, Last.fm and Songbird. Features
Link: FoxyTunes official website Related posts:
-- This Post FoxyTunes – Control music applications on Desktop from your browser is Published on Devils Workshop . |
You are subscribed to email updates from Devils Workshop To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
0 comments:
Post a Comment