Have you ever known that there is a website that runs without internet and if you connect to the internet, it says "I'm sorry" and asks you to disconnect???I'm not joking...lol...It exists in real..!!! If you don't believe, check out this website: http://www.allaboutrajni.com/ .When my senior at college told me about the website that runs without internet, I was amazed. Thanks to Indian Super Star "Rajni Kanth" , about whom the website was built. Have you ever thought how the website can work without internet?
Know How...!!!
Well, it does not! No website can run without the Internet connection. The developers have used a simple logic that makes it seem to work without it. When you open the website, a flash file gets loaded in the background. The developers have created a very lightweight flash file using vector images, so it loads within few seconds. A script runs in loop to check the internet connection status, and as soon as you turn off the internet, the script allows you to see the flash file that was already loaded in the background. Here is link to the flash file : http://www.desimartini.com/allaboutrajniV1/Design.swf
Vector graphics is the secret behind it. It is quick to load because most of the graphical (if not all) content is vector graphics. The difference between vector graphics (this site) and bitmap graphics (such as your family pictures in jpegs, tiffs, or bmps) is that vector graphics use mathematical functions to draw lines and fill colors (and gradients) instead of pixel-for pixel information about color. That results in a very small site, and also: you can try zooming in and you will see that the quality does not degrade (unlike jpegs, bmps, tifs..). The background music probably "weighs" more in terms of disk space then the rest of the graphical content which is pure vector.
Between, flash can mix content (vector+bitmap), but this site was made without any bitmaps so it can be small.
This site is made to run from cache, and also checks for internet connectivity. If this cached website can detect internet connectivity, it is scripted so it does not run.
More about vectors vs bitmaps: http://graphicssoft.about.com/od/aboutgraphics/a/bitmapvector.htm
More about Flash websites: http://en.wikipedia.org/wiki/Adobe_Flash
No comments:
Post a Comment