Thursday, October 23, 2008

Improve Performance of Website (Part-2)

Hey!! i'm back with the second part of the series.....

Let's start!!

* The JavaScript and CSS files are cached by the browser. So, using them as external files generally produces faster pages.Js and CSS that are inlined in HTML docs get downloaded everytime the HTMl doc is requested. This reduces the number of HTTP requests, but increases the size of the HTMl doc. but using JS and CSS in external files reduces the size of the HTML doc without increasing the number of HTTP requests.

Inlining is preferable only with the home pages which have only one page view per session. Inlining in this case results in faster end-user response time.


* The other method is Flush the buffer. When user requests a page ,it takes arount 200 - 500ms for the backend server to stitch together the entire HTML page. And during this time the browser is idle.Some languages rpovide functions to flush the buffer. For Eg. In php we have flush(). It allows you to send partially ready HTML response to the browser, so that the browser can start fetching components while your backend is busy with the rest of the page.

A good practice is to place the flushing right after the HEAD coz it is easier to produceand it also allows you to include any CSS and JS files for the browser to start fetching in parallel while backend is procesing.


... < !-- CSS , Javascript -->
</head>
<?php flush(); ?>
<body>
... <!-- Content -->


Enjoy and Have Fun!!


Please Comment!!

Some Really cooooool tips

Hey!! Were waiting for my series on improving performance of website??
Let's have a break with these reaaallly cooool tricks...

So......read on!!!

* Have u ever tried experimenting with the combination of keys??
Well, some of u might have!!!
Ever tried a mix and match of CTRL/SHIFT with mouse scroll ??

Just try !!!

Isn't tat worth saying ......WOW!!!!

A mix of CTRL + Mouse scroll, either increases or decreases the font size, based on your direction of scroll...This is a simple trick which helps in easy reading for many.

And with SHIFT, it just works like a BACK or FORWARD buttons, based on your scroll...

ENJOY!!!

Please Comment!!

Wednesday, October 22, 2008

Improve Performance Of Your Website (Part -1)

Hello everyone!! Waiting for the next new thing......??

Here i'm back with a complete series of tips and tricks to help you speed up your website with just a few changes.

So.... wat r u waiting!!!

Let's Start........

vrrrroooooomm!!! Here you go..


The first important thing to be considered to speed up any website is it's response time. Most of the end-user's response time is tied up with the downloading components of the site like Flash, CSS, images, scripts etc. And concentrating on this we can reduce the number of HTTP requests. But without these will the site have that RICHER LOOK ?? So here are few ways to speed up your site without compromising the design...


Combined files reduce the number of HTTP requests by combining all scripts into a single script and similarly combining all CSS into a single stylesheet. But it can be more challenging , when the scripts and stylesheets vary from page to page.

Just combine the background images to a single image and use the CSS properties to diplay it. Image maps combine the images... but it works only when the images are contiguous in the page, such as navigation bar. Using image maps for navigation isn't accessible too. So, it's not recommended.

Inline images are the next factor that increases the size of your HTMl doc. So combine images into your(cached) stylesheets. This reduces the HTTP requests and above all inline images aren't supported by all browsers. So, y go for them??

Most of the site visitors come with an empty cache. So, now it's ur role to make a better user experience.

Did it help you?? Just write your comments.
And this is not all ....I told u it's a seeeriiies!!!!
So, keep checking for more!!

Have Fun!!

Tuesday, October 21, 2008

Protect Your PC And Pen Drive From Virus

Many of our PC's or laptop's normally get attacked by viruses coz of pendrives or other USB devices.

And my PC .........it never runs more than 2 months!!! ;)

Some Virus like Ravmon Virus , Heap41a worm which are not detected by anti virus normally spreads mostly by the Pen Drives .

You can protect your PC from them by just following the simple steps below :

* Connect your Pen Drive or USB drive to your PC

* This pop's up a dialogue window prompting to choose among the options.
Just don't choose any of them and click Cancel

* Now go to Start–> Run ==> cmd

* Go to My Computer ==> Check the Drive letter of your USB drive
(E.g. if it is written Kingston (H :), then H: will be the drive letter)

* In the Command Prompt ==> Type the drive letter: ==> Enter

* Type dir/w/o/a/p ==> Enter

* You will get a list of files. In the list , search if anyone of the following
exists :


Autorun.inf

New Folder.exe

Bha.vbs

Iexplore.vbs

Info.exe

New_Folder.exe

Ravmon.exe

RVHost.exe or any other files with .exe Extension .
*

If you find any one of the files above ---

* Run the command attrib -h -r -s -a *.* ==> Enter.

* Delete each File using the following Command :

del filename ( E.g del autorun.inf )

It's all done!!!!

Now just scan your USB drive with the Anti-virus to ensure that your Pen Drive
free of Virus.