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)

1
vote
1answer
7 views

Enable compression for files on godaddy

I have hosted on my of my website on godaddy.com. How do I enable compression to reduce the file transfer size? I need to compress the .css and .js files. I tried the following but it doesn't work ...
3
votes
2answers
161 views

Is it cheating to serve different versions of the same content to users and crawlers?

I have a "smart" template for my website. For human users, the server renders the page content on the initial hit, but subsequent pages are loaded like an SPA. For a crawler, every page is rendered at ...
0
votes
0answers
10 views

How to take text <img> tag and render image [on hold]

We have a system that displays notes on our website, however it is only displayed as plain text and simply displays html tags to the user. We have been able to use AutoLinker.js which converts text ...
0
votes
1answer
21 views

How to configure Mathjax in Mediawiki?

I want to render latex on a mediawiki installation that I don't have shell access to. I've tried and failed to use the Math installation, so I'd like to include the equivalent of these two scripts in ...
0
votes
0answers
20 views

Recent upgrade to Universal Analytics - not receiving any new data

I just upgraded my tracking code to Google Analytics. After this update, I'm not receiving any new data at all! When I in Analytics go to Administrator -> Tracking info, it says "Receiving data", ...
30
votes
1answer
153k views

How to open the JavaScript console in different browsers?

Chrome: Press CTRL + SHIFT + J to open the "Console" tab of the Developer Tools (CMD + ALT + J on Macs). Alternative method: Press either CTRL + SHIFT + I or F12 to open the Developer Tools. ...
0
votes
4answers
154 views

How can i replicated this functionality? [closed]

http://www.astorandblack.com/ab/bespokevisualizer/ (click on "continue as guest") A client wants this "bespoke visualizer" on their site. Is there a third party plugin I can buy for this? It can be ...
2
votes
1answer
267 views

Why is my Custom HTML tag not fired in Google Tag Manager

I have a Custom HTML tag in Google Tag Manager that is actually very simple. It consists of the following code (a GTM Macro): {{html generator}} This tag is only fired on the Thank-you page on my ...
1
vote
1answer
46 views

Why would the Better Wordpress Minify plugin cause alignment issues when activated?

I just installed the Better Wordpress Minify plugin to speed up a Wordpress site. The plugin is causing a couple very small alignment issues, but I can't seem to get the plugin settings adjusted to ...
1
vote
1answer
14 views

Google Experiments - can you run across the entire site?

Is it possible to run a Google Experiment A/B test across an entire website, rather than just a single page and a variation?
2
votes
1answer
34 views

Will asynchronous JavaScript affect SEO?

As page load time affects SEO ranking. In my site I am having some asynchronous JavaScript like AddThis, Google Translator which makes my page load time longer. I want to know whether is there any ...
1
vote
1answer
23 views

Will auto refresh put additional burden on my web app?

I am trying Alfresco share Community Edition. It has a discussion site where user can ask questions. The problem here is alfresco does not provide auto refresh out of the box. The user has to refresh ...
0
votes
0answers
3 views

Mozilla Firefox says Referenceerror event is not defined, no solution has worked [migrated]

I have been having troubles with my code. I have searched and found several solutions, but none of them did the trick. The problem is that mozilla firefox gives me an error: event is nod defined. ...
1
vote
0answers
23 views

Does Google Analytics not track data accurately when reporting the same pages to multiple accounts?

I am reporting my traffic to 2 different Google Analytics accounts. Using Universal Analytics, I am doing something like: ga('create', 'UA-XXXX', 'auto'); ga('send', 'pageview'); ga('create', ...
2
votes
1answer
217 views

Uploading a file automatically for speed test?

I am building a Web UI for a device for internet connection and one of the requirements in it is a speed test. I know the basic concept of how speed test works. A file is downloaded for a limited time ...
0
votes
0answers
7 views

JavaScript, D3 and SEO [duplicate]

I have an unusual website with unique content that gets updated once a month : www.inmobogota.com.co The bulk of the content is visualized in an interactive way through the D3 library of JavaScript. ...
0
votes
1answer
19 views

Circular Progress Button – different times for different buttons [closed]

I'm trying integrate these awesome circular buttons with my form. Everything works but I have one problem: I wanna different status time for each button. Here is an example: ...
4
votes
1answer
46 views

How to hide a JavaScript popup for Googlebot?

I want to display a JavaScript popup when visitors access my website, however I believe Google will decrease my rankings when they detect a popup. So, is there any way to hide a JavaScript popup for ...
1
vote
1answer
40 views

How to properly specify font size and face in a classified Ads HTML template?

How to properly specify font size and face in a classified Ads HTML template without html, body and head tags (these tags will be cutted), when template will be put in iframe on page? The classifieds ...
0
votes
0answers
8 views

Move a full website from one adress to another [duplicate]

I want to move all file and link for example www.website.comt/1.html to www.website2.com/2.html Can you give me some link/info for guiding me
5
votes
4answers
8k views

What is the optimal folder structure for a web directory?

I've been doing web development for years, and I've always done a web structure similar to this: public_html/login.php public_html/css/login.css public_html/js/login.js public_html/img/logo.png ...
1
vote
1answer
45 views

Blogger's embedded CSS and JavaScript

I'm trying to host a blog on Blogger with a custom domain. It's all good except the annoyance of many workplaces blocking the Blogger website using web-filters, including mine. This is causing the ...
2
votes
1answer
125 views

Can I reposition AdSense ads with Javascript (for responsive purposes)?

I have a responsive blog where ads are displayed in the sidebar. On mobile devices however, the sidebar is pushed to the bottom below the posts. So what I'd like to do is move the ads from the ...
2
votes
2answers
104 views

Is it possible for a script tag to be perceived as an inbound link for SEO?

My company has <script> tags on a lot of sites, some of these sites have very high page ranks. Right now the <script> tags have a src of Microsoft's blob data. We want to move away from ...
1
vote
1answer
268 views

No cache and Google AdSense performance

I'm developing a page where I need to avoid JavaScript caching by browser. I've added this header: <?php header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); ...
5
votes
1answer
471 views

Google Analytics cookie across SagePay checkout

We use SagePay's Server integration for our online payments. We use Google Analytics to track activity on our website and Google Ecommerce tracking to log transactions. In Google Analytics, under the ...
0
votes
0answers
76 views

How to prevent TYNT from inserting Iframes into my site [closed]

I have a wordpress site and since two days ago an iframe is showing up above the </body> tag. The iframes are not always the same and they wont show up everytime, they show up like 90% of the ...
1
vote
0answers
41 views

Do web crawlers have local storage?

The title basically says it all, but the reason for my question is this... I make a few checks before I load in any ads, and one of these checks is to see if the browser has local storage as my ...
1
vote
0answers
35 views

Will AggregateRating markup that is generated dynamically by client side JavaScript show stars on Google search?

Google show stars in Google search with JavaScript dynamically generated rich snippets? I'm thinking about starting a widget that my users will put in their website. My widget will generate rich ...
0
votes
1answer
30 views

What is the name of this type of website? [closed]

I'm not sure what stack exchange site I am supposed to ask this question in, but I will ask it here anyways. This site has a particular style that I want to create on my own using HTML5, CSS3 and ...
3
votes
1answer
398 views

Google follows JavaScript string as relative path - produces 404 error

This is my first question on here so I hope I'm not breaking any rules, but I have a problem: I have a site that uses an Adobe Site Catalyst for its online analytics. The suite supports tagging ...
11
votes
5answers
12k views

Chrome refused to execute this JavaScript file

In the head of my HTML page, I have: <script src="https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.js"></script> When I load the page in my browser (Google Chrome v ...
1
vote
1answer
35 views

Disqus “unable to load” during Google “fetch and render”

If you look carefully at the below image you can see the message "We were unable to load Disqus" ... Does anyone know how to fix this?
13
votes
3answers
2k views

Lazy loading images and effects on SEO

We are using the following technique to lazy load images in our site: For all images we put in the src attribute a url for a default img (i.e. a loader) and put the actual image url in the data-src ...
13
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 ...
0
votes
1answer
49 views

WebSocket and SEO [duplicate]

I have a client who wants to create a real state web but with only 1 page and everything should be done dynamically, preferably using websockets. Technically speaking it's possible, but my question ...
12
votes
8answers
3k views

Is inline JavaScript good or bad?

I've currently switched from WordPress to Yii framework and an external developer is rebuilding my site. One thing I notice is that each time he invokes AJAX / jQuery the Yii way, it embeds inserts ...
1
vote
1answer
92 views

Make my website dynamically loaded data available to Facebook Open Graph Object Scrapper

Here is the design of my web site: The user enter myWebsite.com/a/1 .htaccess rules redirect to myWebsite.com/b Now the JavaScript ExtJS library is loading. Extracting the value from the URL (in ...
0
votes
2answers
56 views

Display content using JavaScript only to Google bots

My company sells a Q&A solution for e-commerce sites. They basically have a button on their product pages that opens an iframe containing a forum with questions and answers. We would like the ...
3
votes
2answers
64 views

How can I get Google to index content that is written into the page with JavaScript?

I have a website that focuses on charts and graphs. The graphs on the site are drawn using JavaScript, but contain keywords that I would like to have indexed. For example, here is a screenshot of ...
1
vote
1answer
68 views

How to make content displayed in and iFrame crawlable?

My company sells a solution for doing Q&A for products on e-commerce websites. The client must add a div containing a link and some JavaScript on their pages, when the link is clicked, it opens ...
3
votes
1answer
33 views

What are the effects on loading times when conditionally loading and concatenating scripts?

Suppose you have a script in your theme that you always need on every page - say 'animate-menu.js' (10KB) - and you have one that you only need on one specific page - say 'validate-contactform.js' ...
2
votes
1answer
1k views

Forbidden 403 for js file on localhost?

apologies if this isn't the right place to post this. I posted it on Stack Overflow and a user suggested I put it here. Anyway, I've looked all over google and the site and none of the solutions I've ...
0
votes
1answer
15 views

Staying notified of when there are updates to vendor scripts

I own a web app that uses various vendor scripts (both javascript and CSS). Basically all of them have their repository on GitHub. Every few months, I look to see which version of each vendor script ...
0
votes
2answers
32 views

no index no follow after page load

I have a component which makes a promotion "expire" after a certain date, when it expires I want to add a NO FOLLOW NO INDEX meta tag via JS. The question is would Google stop indexing this page as ...
3
votes
2answers
73 views

Troubleshooting websites on gaming consoles

I realize that questions like "suggest a tool" are usually not allowed, but I would like to pick your brains for a good way to troubleshoot websites on gaming consoles (PS3/4 , Xbox360/One and ...
1
vote
3answers
102 views

InstantClick effect on SEO?

InstantClick.io is a pretty awesome JS library that makes a website feel a lot faster (in most cases) by prefetching links when a user is hovering above them. This will cut off at least about 100ms ...
1
vote
1answer
183 views

Caching of JS and CSS files – Apache mod_headers doesn’t take effect

As suggested by an answer on SO, I'm trying using a version number on my JS and CSS files so that the browser will only make a request when the JS or CSS version number is changed in my PHP file. To ...
0
votes
3answers
128 views

Do search engines care about case sensitivity of HTML tags and JavaScript functions?

Which is better for SEO ? HTML <p id="hello"></p> <p id="HELLO"></p> <p id="Hello"></p> <p id="hELLO"></p> JAVASCRIPT function hello(){} ...
10
votes
2answers
444 views

Google indexing pages with #! although we don't have any

Our company has developed a Single Page Application using AngularJS and its routing. Google indexed our site decently with JavaScript but it did not index some pages very well so we have developed an ...