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)

0
votes
0answers
8 views

Is this a valid approach to Responsive Image Loading? [on hold]

I don't want to hard-code media queries, column widths, and/or breakpoints into my HTML because these values vary widely across my website designs. So I've devised what I hope is a valid approach to ...
0
votes
0answers
3 views

Is there a way to view the hierarchical structure of javascript files while debugging (F12) in Firefox? [migrated]

I'm using Firefox 29, and when I open up the debugger (F12 for web console)->Debugger Tab, I get a list of sources at the bottom left of the web console, but they're not in any particular order, and ...
1
vote
1answer
137 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'); ...
1
vote
1answer
16 views

Google pre-rendering causing double and triple events [duplicate]

Is it possible to detect google chrome and firefox prerendering on the server side, or in .htaccess, and defer the prerendering for the purpose of monitoring traffic and website events, or do I need ...
4
votes
1answer
338 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 ...
-2
votes
0answers
16 views

Making STL viewer to render a STL file automatically [closed]

I wrote a STL viewer which will be loaded in browser and we should upload a STL file manually by clicking a button and inputting a STL file. But I don't want that to happen. I want STL viewer to ...
0
votes
2answers
51 views

Cannot add DataTables.net javascript into Joomla 1.5

I've been having this problem where i couldn't add Datatables.net javascript into my Joomla article. I have been trying to include it through Jumi. To say that my editor strips of the tag is ...
1
vote
2answers
2k views

What service could be adding NewRelic?

At the bottom of my web pages is: <script type="text/javascript"> if (!NREUMQ.f) {NREUMQ.f=function() {NREUMQ.push(["load",new Date().getTime()]);var e=document.createElement("script"); ...
0
votes
3answers
23 views

How to SEO optimise Ajax/Json loaded images?

I am using Galleria.io on a website to display a gallery of images. In the database, the images have a title and description to properly explain what the image is. I load the images into galleria ...
1
vote
3answers
104 views

Is doing A/B tests using site redirection a bad practice?

I'm developing hotels websites here in Brazil. When the site is done, we do an A/B test with the old version to measure conversion and show to the hotel owner how good our site is. Due to the fact ...
3
votes
3answers
196 views

How to redirect keeping the referral without server-side redirects?

I have an HTML page hosted in Dropbox that some external websites link to. I want to redirect to a different page using only HTML or Javascript, since I can't use any server-side redirects. My goal ...
0
votes
1answer
153 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

How to get Google to index a dynamic title in an Angular.js app [migrated]

Google is indexing my Angular.js app's content just fine, i.e. it executes the JS, XHRs, the whole deal, but for some reason the title is not indexed properly and remains the static HTML fallback ...
1
vote
2answers
29 views

Redirect to an affiliate using PHP or JavaScript redirect?

I was asked to introduce a unified self hosted URL-Shortener/Forwarder/Tracking Service for an website that earns money from affiliates. One example I found was one of the bigger german sites for ...
1
vote
2answers
143 views

403 Error Fetching Image with JS

I've read all the 403-related questions here and elsewhere and I can't find an answer to this question: When I try to get a particular image on a remote domain via JavaScript I get a 403 error. But ...
2
votes
1answer
47 views

JavaScript conditional “builds”

I'm working on a piece of JavaScript code that searches its host page for references from a certain source and when hovered, shows the definition/referenced text in a tooltip (something like Google ...
1
vote
1answer
13 views

Does Googlebot share geo-location information to better crawl geo-aware websites?

I'm developing a website that allows users to share their location via JavaScript. Based on that location, either the content of the current page will change, or it will redirect a user to a page with ...
0
votes
1answer
37 views

How does licensing affect my website?

I like to use prebuilt CSS/JS such as Foundation and PureCSS and I'm curious as to how I should go about displaying the licensing information, as well as how the license will affect the code that I ...
1
vote
2answers
23 views

Global UTF-encoding, the right way

I'm curious, as to what is the right way to have UTF-8 encoding on all web files All my files (incl. CSS and JS) are made and saved in UTF-8 encoding In PHP, I set the char-set on top of the main ...
2
votes
2answers
548 views

How to interpret Events from Unique Events in Google Analytics?

I'm trying to add some javascript triggered Google Analytics events to a website that is already working with GA. I've included the following beneath the standard GA script (new ga.js script). ...
2
votes
0answers
21 views

Store a formula in a table and use the formula in a javascript/PHP function [closed]

I have a MySql database where part of it handles instrument's depth of water. Each instrument has its own formula of calculation how depth the water when the operator collect the reading I stored the ...
12
votes
4answers
3k views

Does the Google spider render JavaScript?

Does the Google spider knows how to render JavaScript, or only HTML?
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 ...
10
votes
7answers
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
0answers
126 views

Why is my Custom HTML tag not fired in Google Webmaster Tools

I have a Custom HTML tag in Google Webmaster tools 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 ...
10
votes
2answers
274 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 ...
0
votes
2answers
76 views

Will i18next affect SEO? What about screen readers?

I'm considering using i18next for translating text. But then it suddenly struck me; If labels / text is retrieved through javascript, won't that affect SEO? And what about screen readers for visual ...
0
votes
0answers
14 views

How to clean PmWiki from JS:Includer-AWG and protect my site from future infections?

I'm hosting a site for an NGO for several years now. The site seems to be based on a PmWiki backend. I don't know much details because I'm just hosting the site and I'm not the guy who set it up. I ...
1
vote
1answer
53 views

How should I upload videos to Amazon S3?

I have a project which is basically a website like YouTube. I am hosting my videos with Amazon S3. I am confused as to whether I should upload videos (200mb+) by a PHP script or by browser-based ...
1
vote
1answer
72 views

Could too many HTTP requests using AJAX result in browser crashes?

We are running an ASP.NET web application, and recently we received a lot of crash reports from users. It sometimes crashes the Chrome browser, and sometimes it loads indefinitely. This is how our ...
0
votes
0answers
32 views

How to inspect code in case of Arabic language?

In case of English, I am able to view by inspect element directly. I want to do the same for Arabic. Using body{direction:rtl} only flips some views but it does not apply body.rtl specific CSS ...
0
votes
1answer
59 views

How to add custom CSS for Addthis and validate on W3C validator?

I have Addthis code on the very bottom of the page HTML code, and then, after it I have CSS file with some custom decorations of Addthis widget. Everything looks like this: <script ...
0
votes
2answers
44 views

Dynamically load CSS

I'm using LESS for creating CSS and I'm considering using something like grunt-render on the server side in order to only load the CSS / JS that is needed for that page. My goal is to reduce overhead ...
3
votes
4answers
176 views

Are there any scripts to integrate social networking site's chat and posting features into a webpage [closed]

Are there any scripts to integrate social networking site's chat and posting features into a webpage using PHP or JS... for example a section with Facebook chat, a section to post to twitter and maybe ...
0
votes
2answers
696 views

Embed content, iFrame or load via JavaScript?

I have to load remote content in several sites and I'd like to know which is the best technique. I know I can go trough an <iframe> but it isn't SEO friendly. I want the content to be found and ...
1
vote
0answers
20 views

line monitoring of phonograms (songs) of radio [closed]

I need to create a monitoring system of phonograms (songs) of radio and television online through streaming so on, but my team and know the way to develop this monitoring system, I know there ...
2
votes
1answer
169 views

AngularJS SEO for static webpages (S3 CDN)

I've been looking into ways to improve SEO for angularJS apps that are hosted on a CDN like Amazon S3 (i.e. simple storage with no backend). Most of the solutions out there, PhantomJS, prerender.io, ...
0
votes
1answer
34 views

Is linked text searchable by crawlers?

I recently created a simple website for a web-app I made. The site and the app are both mobile oriented, so there is a limited amount of room for adding text content (I designed the interface to avoid ...
1
vote
2answers
49 views

Do spam bots load the DOM?

I have an issue where a form on my site is getting spammed. The form is actually a copy paste job from a CRM, so I cannot access any of the server side script to make a good human checker. In the ...
2
votes
1answer
229 views

How does CloudFlare's Rocket Loader actually work (and how can a developer ensure compatibility)?

CloudFlare has quite a ground-breaking technology called Rocket Loader (both on free and paid accounts). But how does it actually work? They have a couple of pages that describe the technology, but ...
1
vote
2answers
333 views

Customising Google Maps breaks highway label blocks

I'm trying to customise a Google map to use shades of a particular colour. It's working nicely except the blocks that contain major road names / numbers is illegible. I've figured out how to target ...
1
vote
0answers
91 views

Google analytics in E-commerce iframe not tracking source

I have a ticket booking system in an iframe. I am tracking sales but the source of the sales is not being recorded. I'm trying to shed some light on why this might be. The code on the parent page is ...
1
vote
0answers
30 views

Can a webpage dial a traditional phone land-line? [closed]

I am working a website for a sales team and I would like to know if there is a way to dial a traditional telephone land-line from a webpage using JavaScript or a plugin in conjunction with a piece of ...
0
votes
0answers
18 views

Discrepancy in Google Analytics 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', ...
0
votes
0answers
14 views

Will auto refresh burdens my web app?

I am a self learner and I now 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 ...
0
votes
1answer
81 views

Best practice for scroll-up web page

As was pointed out in a question asked earlier, Google will not recognize when the DOM is altered via JavaScript after initial page load to start at the bottom and scroll up rather than down. ...
1
vote
1answer
15 views

how to send and display data from one domain to another? [closed]

I have my portal on asp.net, my friend have on php. He wants to me to return text data from my database by sending parameter and wants to display it on his portal. I have given him url say ...
0
votes
1answer
45 views

Declaring variables using single or multiple var statements. Performance wise [closed]

Someone once told me that it's better for Javascript performance to use one var statement rather then multiple. I.e. // Version A. Allegedly Faster var a = 1, b = 2, c = 3; // Version B. ...
2
votes
2answers
114 views

Is changing HTML with JavaScript bad for SEO?

Building web apps I don't have to worry so much about SEO for back end things so dynamically changing the HTML isn't an issue. I am using backbone.js with a front end site I'm building and the site ...
3
votes
2answers
81 views

Can Google index pages that use framesets generated by javascript (document.write)?

I was tasked to check on why Google can't seem to index a client site properly. The site uses a framework given by client's parent company (so we can't use other framework). The framework use ...