Kurinchi Blogger Scribbles …


Posts Tagged ‘javascript’

Dec 06
2009

HTTP-Header: User-agent modification

Last updated: December 5th, 2009

When a browser makes a request to the server, it sends information such as its operating system name, version in addition to the type of the browser from which the request originates in the header variable “user-agent”.

Depending on the request made, server responds back with specific details which can range from browser specific css layout to calling certain javascriptsfor certain browsers.

Changing the user-agent also helps us in understanding how spider-agents or bots will see the pages that we build. It also helps us design applications that will mimic a request as originating from a mobile phone and helps us in viewing the behavior of the application in different mobile clients.

To read more about HTTP-Headers check ietf

Oct 03
2009

Javascript Memory Leak Diagnosis

Last updated: October 1st, 2009

What is meant by Memory leak?
Memory leakage refers to obtrusive memory handling techniques adopted in programs which leads to increased load time and poor performance.

Various scenarios can cause memory leaks which can range from unhandled memory garbage to cyclic references to error in code logic. One best suggestion given in the javascript forums to overcome this problem is to nullify the element once its usage is over.
(more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict