![]() |
|
03.31.09 Developing A Google Chrome Optimized Site By Navneet Kaushal After the launch of Google Chrome in September last year, many webmasters and web developers have raised questions on how to make their sites look good in Google Chrome. As a response to these questions, Glenn Wilson, Product Manager, Google Chrome is giving few tips in his post that will provide a stellar look to your website. Detecting Google Chrome As Safari and Google Chrome are web-kit based browsers, most of the sites will look same on both. If you think your site looks right in Safari, then it will definitely appear right in Google Chrome too. Because of Google Chrome being new, many sites confuse it with another browser. If you find your site not looking quite good in Chrome in comparison to Safari, there is a possibility that your site is not recognizing Chrome's user-agent string. Most of the platforms and browsers adopt WebKit as rendering engine, there are chances that your site automatically detects and supports them with right JavaScript checks. In maximum cases, sites use JavaScript to 'sniff' the navigator.userAgent property for both the browsers, Safari and Chrome. But, it is always better to use proper object detention. Even Gmail is detecting Webkit properly in Chrome from the very first day. ![]()
For detecting the user-agent type, use this JavaScript to detect the WebKit: var isWebkit = navigator.userAgent.indexOf("AppleWebKit") > -1; If you want to make sure that the version of WebKit is a certain version, or if you want to use a new WebKit feature: var webkitVersion = parseFloat(navigator.userAgent.split("AppleWebKit/")[1]) || undefined; if (webkitVersion && webkitVersion > 500 ) { // use spiffy WebKit feature here } Continue reading this article. About the Author: Nav is the founder and CEO of Page Traffic, a premier search engine company known for its assured SEO service, web design and development, copywriting and full time SEO professionals. Navneet has wide experience in natural search engine optimization, internet marketing and PPC campaigns. He is a prolific writer and his articles can be found in the "Best Articles" section of many websites and article banks. As a search engine analyst , he has over 9 years of experience and his knowledge is in application here. |
||||||||
|
|
|
-- DevWebProBR is an iEntry, Inc. publication -- iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 © 2009 iEntry Inc. All Rights Reserved Privacy Policy Legal
|