JavaScript is a dialect of the standardized ECMAScript programming language, primarily used for scripting web-pages. Use this tag for questions regarding ECMAScript and its dialects/ implementations: JavaScript, JScript, etc., excluding ActionScript.

learn more… | top users | synonyms (2)

12
votes
4answers
3k views

Does the Google spider render JavaScript?

Does the Google spider knows how to render JavaScript, or only HTML?
43
votes
16answers
2k views

HTML validation: is it worth it?

What are the advantages and disadvantages (if any) of making sure that all pages validate compared to having non-valid HTML that however works on all major browsers? Also, is having valid HTML after ...
15
votes
4answers
30k views

How do I set expiration headers for CSS, JS, and Images?

I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files. I am wondering how do i do this?
22
votes
6answers
15k views

How do you exclude yourself from Google Analytics on your website using cookies?

I'm trying to set up an exclusion filter with a browser cookie, so that my own visits to my don't show up in my Google Analytics. I tried 3 different methods and none of them have worked so far. I ...
5
votes
1answer
408 views

How to overcome politics of the net (Google translate code refuses to work from a specific region)

According to the FAQ's I am not sure if my question is a ok to ask or will be closed or should I post it in the meta or even I would blame some one for downvoting it. However it is one that has been ...
5
votes
4answers
458 views

Will JavaScript (document.write) content be indexed by search engines?

I have an external JS file embedding some content inline in a web page. Basically it just does a document.write("my content") via a script tag and loaded externally with the src attribute. Any ...
5
votes
1answer
485 views

When opening a local HTML file, how do I ensure I get the content not a cached version?

I have an issue where the newest content of a local HTML file is sometimes not displayed. Instead, the browser shows a cached version. The workaround is to press <Ctrl>+<F5> but I'd like ...
4
votes
1answer
285 views

Javascript reliance an issue for mobile optimised sites?

I'm mobile optimising a site with media queries. As I understand mobile browsers are generally quite modern and can handle CSS3 etc well. So does this mean javascript reliance for the mobile version ...
3
votes
1answer
337 views

Collapsible menu and amount of links in a web page

One of my pages contain three levels of a collapsible menu (JS + CSS from mycssmenu.com). There are a dozen first level items displayed to users, each one with various second level items, and finally ...
1
vote
3answers
759 views

Will my new HTML5 website decrease my Google ranking?

I have a traditional HTML website that loads pages/sections of the site when people click on menu items. Pretty standard. Currently, I'm working on relaunching my website with a brand new HTML5 code ...
12
votes
1answer
4k views

Is this a good approach to image Lazy Loading for SEO?

For images loaded via AJAX, or that I don't want indexed, use the data-* attribute approach: <img data-src="path/to/image.jpg" class="js-lazy-load" /> The javascript maps the data-src ...
4
votes
1answer
1k views

Dictionary API for a website?

I would like to have a dictionary for my website where the user can easily fill in a word or better yet right click a word and get the definition right there on the page or something along those ...
21
votes
4answers
2k views

Why insert static files (CSS, images, JavaScript, ECC) in a subdomain?

Why so many big and little sites inserts static files (CSS, images, JavaScript, ECC) in a subdomain like media.example.com or s2.static.example.com? What are the advantages? Why not just a directory ...
14
votes
5answers
2k views

What's the best way to load Javascript into a page to optimize performance?

Is there a way to load my JavaScript into a page that will make it load faster?
7
votes
3answers
4k views

Would redirecting to a new home page affect SEO?

I'm currently working on a new landing page for this site. I want the landing page to replace the existing front page of the site. However I don't want to lose the Page Rank of the current front page ...
4
votes
2answers
200 views

Is making AJAX site crawlable AND degrading gracefully with JS turned off possible?

According to this spec, making AJAX site crawlable by Googlebot means that you have to use hashbang (#!) links in it which means it won't degrade gracefully when JS is turned off. This might mean that ...
3
votes
2answers
4k views

Free/cheap Whois Api [closed]

Is there a free API where I can pull whois data and server location data? (similar to who.is)
5
votes
3answers
8k views

Possible to only load specifiv div of a website?

I have this project i'm working on and id like to add a really small list of nearby places using facebooks places in an iframe feature from touch.facebook.com I can easily just use ...
4
votes
2answers
278 views

Best approach to have Google index content primarily generated by Javascript

I'm developing an app where customers can drop in a Javascript tag onto their website, and it will generate content. What is the best approach to have Google index this content and associate it with ...
21
votes
1answer
1k views

Someone else is using our Google Analytics Tracking code number. What do we do?

After looking over our Analytics today, I realized that another website is also using our same tracking code #, which is cause quite a few incorrect hits to our Analytics. Are there any ways to ...
12
votes
5answers
3k views

Should I worry about people disabling Javascript?

Often when picking new tools and frameworks I see the warning "Will not work if the user has disabled Javascript". I then look at my Javascript powered slideshow, Javascript powered menu, and ...
3
votes
2answers
506 views

How can I create links in javascript that are crawlable by search engines?

If I use JavaScript + jQuery, for example, does links inserted in $(document).ready() will be available for crawling? How can I insert crawlable links in JavaScript?
3
votes
2answers
566 views

Google JSAPI Auto-Loading

When using Google's JSAPI Auto-Loading system - is there a way to get the returned file with all the JavaScript (combined) in one HTTP request? At the minute is just calls the load routines (with ...
1
vote
0answers
72 views

What could keep a javascript from loading properly on a page? [closed]

We have a vendor that switched our files over to a new server. We had a carousel on our homepage that was using javascript saved on the vendor server. After the move the carousel javascript won't ...
1
vote
2answers
310 views

Litmus test to determine if javascript content is crawlable

Already read this: How can I create links in javascript that are crawlable by search engines? I make the assumption that if you view source on a page and can find content / links hidden by javascript ...
0
votes
2answers
737 views

How to find a good photo gallery for my website? [duplicate]

Possible Duplicate: Which Content Management System (CMS) should I use? For my website I'm searching for a really simple gallery module that looks like the one use by Dropbox. But I'd like ...
0
votes
1answer
282 views

addthis button default message

How to set default message, I am using addthis button for invite a friend Email on a website. that default message should also work if user choose gmail, yahoo etc from addthis box.