X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   I want to remove java script detecting function of x-cart (https://forum.x-cart.com/showthread.php?t=52196)

anandat 02-06-2010 06:48 AM

I want to remove java script detecting function of x-cart
 
can I remove the detecting Web Browser's capabilities for javscript of x-cart ?

I guess now a days every browser accepts javascript & mostly no one keep it disable unless one has got special requirement to do so.

Google bots also support javascript & improving every day.

So it's advisable remove that function ?

As google many time crawl url like http://www.mysite.com/product_name.html?js=n & some times
http://www.mysite.com/product_name.html?js=y

Can one please help me ?

cautious 02-06-2010 09:49 PM

Re: I want to remove java script detecting function of x-cart
 
Quote:

Originally Posted by anandat
can I remove the detecting Web Browser's capabilities for javscript of x-cart ?

I guess now a days every browser accepts javascript & mostly no one keep it disable unless one has got special requirement to do so.

Google bots also support javascript & improving every day.

So it's advisable remove that function ?

As google many time crawl url like http://www.mysite.com/product_name.html?js=n & some times
http://www.mysite.com/product_name.html?js=y

Can one please help me ?


I do not still see a compelling reason to remove the js detector. Because you and I and some friends we know keep js enabled, it does not mean the people who count - your customers will always have them enabled when they come to your shop. So, may I recommend leaving it alone.

If you are worried about Duplicate contents with the crawl sample you gave us, then update your Robots.txt bot messaging file to have two lines similar to these:

Disallow: /*js=y
Disallow: /*js=n

Hope this helps.

anandat 02-06-2010 10:57 PM

Re: I want to remove java script detecting function of x-cart
 
Hi cautious,
That's a good idea :)
Thanks a lot :)

anandat 02-13-2010 10:35 AM

Re: I want to remove java script detecting function of x-cart
 
Quote:

Originally Posted by cautious
Disallow: /*js=y
Disallow: /*js=n


I added above 2 lines in robots.txt & now google webmaster reports shows Restricted by robots.txt ‎(23,602)‎!!!

I am using CDSEOPRO.

R U sure it will still crawl other pages on site will just not crawl pages with /js=y & /js=n ?

Do I need to worry ?


All times are GMT -8. The time now is 09:24 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.