Questions tagged [javascript]

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.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Why does loading of an external “async defer” javascript code happen before page load?

Recaptcha recommends loading of its script like this: <script src="https://www.google.com/recaptcha/api.js" async defer></script> I added this to the head section of the html document ...
2
votes
1answer
254 views

Is it possible to change from domains to phrases in the URL bar?

You can change a URL like google.com to google.com/test without reloading the page by JavaScript. Is it possible to completely change the URL like from google.com to Welcom.To.The.Website using the ...
3
votes
0answers
177 views

Blocking the ISP's ads appearing after a possible DNS grab and redirect via port 53? [closed]

Whenever I switch on my modem and try to connect to the internet, my ISP redirects me to their website. I'm assuming they are grabbing DNS requests and redirecting them using port 53. A video of it ...
4
votes
2answers
99 views

Adsense ads don't appear even if account approved

I have a website that runs on Apache 2 and has code in PHP and JS + HTML. This is the code of my ad unit: I have an approved AdSense account that already was showing (and getting revenue) from AdMob ...
1
vote
1answer
89 views

Send pageview with Analytics.js to a second account

Using Analytics.js: <script> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) ...
2
votes
1answer
32 views

Can it be an issue to search engines if a primary image in a webpage is not declared with an image tag?

I was looking at my reports on google adsense, and on my mobile site, google reports that people see ads about 1% of the time. The stats are much more in my favor on the desktop site where the ads are ...
1
vote
0answers
57 views

how to include images,scripts that are in default folder of views in web2py

I have an image in the default folder of views as an example in the below link (http://127.0.0.1:8000/cooking_recipes/default/images/nav-logo.png) and even some scripts in the same folder.that is ...
0
votes
2answers
82 views

Legal notice that copying javascript isn't allowed

I've build a fun tool for one of our clients. This client is in a competitive business and likes to keep this tool to itself. As we all know, javascript is quite downloadable, and even obfuscated not ...
2
votes
1answer
82 views

Identify keys bound to website buttons

After running my site through powermapper tools, they present this issue: All ONCLICK handlers should have an equivalent ONKEYPRESS handler. Section 508 1194.22 (l) WCAG 2.0 A F54 Some ...
1
vote
0answers
155 views

How to handle AngularJS hash bounce in Google Anlaytics?

Google Analytics append string is stripped off due to angular hash (#) bounce. when you click on it this link sub.f.org/fff/sign-up/plan, the following actions occurs: a link appears in browser as ...
4
votes
1answer
625 views

Does Googlebot trigger onclick events and index the resulting content?

I've found many topics about Googlebot following links and executing ajax queries but none that tell me whether onclick events would get triggered and results crawled. Let's say that an image is ...
6
votes
1answer
2k views

Structured Data Tool doesn't see JavaScript rendered content

Some structured data (namely price) of my page is rendered by JavaScript. According to fetching results in Webmaster tools Googlebot sees and renders it perfectly. However the structured data tool ...
3
votes
7answers
396 views

Prevent robots from indexing specific word

I need to prevent robots from indexing specific word on my webpage. Here is what I did: Let's say I need to prevent JOHN GALLOW from being indexed. For that purpose, I wrote this pararaph: Over the ...
7
votes
1answer
841 views

Googlebot encountering JavaScript errors due to rendering outdated HTML files with newer JS files

We recently encountered an issue where we added a JavaScript variable (e.g. var GLOBAL_VAR = true;) to an HTML page (e.g. /Search/Index) and updated the separate JS file (e.g. /Scripts/search/index.js)...
1
vote
2answers
254 views

Angular JS website (use of pre-render.io)

Hi ProWebmasters Community, Considering a move to build a highly Angular JS website with around 3 million pages. One of the questions that is constantly coming up is to use https://prerender.io in ...
2
votes
1answer
5k views

How should the back button behave when a site is built with AJAX and JavaScript?

I have made several websites and web applications, and still not sure of what the behaviour of the browser's back button should be. In some cases where AJAX and JavaScript technology is used, hitting ...
2
votes
1answer
844 views

Does a script tag really need a color defined?

I went to achecker.ca to test my website for accessibility issues. While it found no actual problems, it found about 100 potential issues. One of them is this: 1.4 Distinguishable: Make it easier ...
0
votes
2answers
114 views

How to allow selecting texts on the posts that are disabled from selecting?

Let me make clear. I added a html/javascript code on my blogger for disabling copying of contents. The code is : <script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></...
5
votes
2answers
175 views

Can I declare a duplicate page via javascript for google?

Most sources of documentation state that one can declare a webpage a duplicate of another by applying this tag on the duplicate page: <link rel="canonical" href="(absolute URL to original page)"&...
1
vote
1answer
97 views

Why is hidden content not always indexed?

I've read several blogs discussing the 'hidden content' issue. This article experimented with several options. It concludes that Google DOES index hidden content. The issues is also discussed here. ...
2
votes
1answer
48 views

Spitting server side request into HTML to be used in JavaScript bad practice?

I am working with an API which essentially provides me with image urls that are hosted on a CDN somewhere. I can simply pass it a number and it will give me the right image and it also provides me ...
2
votes
1answer
2k views

Javascript page load time calculation returns negative

<script type="text/javascript">//<![CDATA[ // jQuery has already been loaded but this could be equivalent to // a function in <body onLoad=""> $(function(){ var iNavStart=performance....
2
votes
1answer
118 views

Will Baidu spider understand an infinite scrolling page?

My team is looking at implementing an infinite scrolling page while maintaining good SEO. We're following Google's advice for infinite scrolling SEO from this article: http://googlewebmastercentral....
2
votes
1answer
70 views

Googlebot only seems to crawl my front page even when provided a different URL

I'm new to the webmaster world and trying to get my site SEO ready. It runs on javascript (AngularJS) and I set up all the things you'd need so that crawlers can read the site. I have the <meta ...
0
votes
1answer
48 views

Can generating static links via javascript be legal and recognized?

I have a page of photo thumbnails on my site. On the page, a large number of links are grouped together consecutively, and the links take up at least 1/2 the HTML code size. Here's an example: <...
1
vote
1answer
919 views

SEO on ui-router states of AngularJS SPA

I have a simple SPA created with AngularJS, you can see it running here: www.consami.com.br. I was using Prerender.io to load a pure HTML version for crawlers, however some pages were not indexed by ...
0
votes
2answers
859 views

How should I access a variable after an async script is loaded?

I have a setup tag for a Tracking service called Clicky that loads asynchronously on every page. I need to access "clicky" variable from another tag, which is only accessible after setup async script ...
1
vote
1answer
691 views

Does Google bot crawl dynamically created iframes? [duplicate]

The situation looks as followed: User includes Javascript snippet into his page. Javascript creates iFrame dynamically and appends it to page. iFrame has static content. Is Google bot smart enough ...
3
votes
2answers
2k views

How bad is JS redirects for SEO?

I have a domain with different markets/languages on different URL paths, like example.com/fr for France and example.com/se for Sweden. This way we gets all our pages indexed for each language - great! ...
0
votes
0answers
36 views

Google INDEED crawls ajax? [duplicate]

I don't understand how this didn't make a bigger BOOM online. It is well known in the industry that google does not index AJAX (just google-search "google crawls ajax") and see dozens of articles ...
0
votes
2answers
30 views

How to pass the Page filename to Google Analytics trackEvent()

I want to easily view Events for a particular page in Google Analytics. Is there a way to pass in the page filename to the event call? e.g., _gaq.push(['_trackEvent', 'ACTION-DESCRIPTION', 'ACTION',...
0
votes
2answers
30 views

Videos on homepage using JS will this effect SEO?

My website has videos on the homepage that open up in JavaScript without navigating to another page. Many other websites host videos on separate pages, will this effect my SEO?
3
votes
1answer
449 views

Cookie consent messages required on websites - how will adsense work?

I ended up watching this video: https://www.youtube.com/watch?v=H5xVSXTn41Y It states that publishers have until September 30th, 2015 to add a visible message indicating about the use of cookies on ...
2
votes
1answer
1k views

Will Google/Bing crawl my website both with and without Javascript, or with only?

We have put a lot of work into our website, to try and make it as SEO-friendly as possible, while also providing a great UX. If you visit with JavaScript enabled, you get a slick AngularJS SPA, which ...
2
votes
1answer
187 views

Duplication of menu through javascript or PHP: Which is better for SEO and page performance?

I have a site with a typical desktop dropdown menu. For the mobile menu (and on touch devices), I am using javascript to slide it out onto the page from the right side by touching a menu button. The ...
6
votes
1answer
533 views

Do loading screens positioned above site content harm SEO?

I use a white div covering all screen before the page loads on a website. Will this hurt my Google Search position? It's not like I'm hiding links on purpose, and I've seen loading screens on many ...
1
vote
0answers
137 views

404 error - page loads fine. OSCommerce - Seperate WP install on blog.

I have looked over other peoples posts but I cant find anything to fix this specific error. On my site, I have 2 CMS - one for the main site which is OS Commerce and I have Wordpress installed on the ...
1
vote
1answer
99 views

Will JavaScript influence my search position in Google?

I have a script which does some position fixes within my site - things like $(".slider_text").css("paddingLeft", procentaj_stdr); $(".slider_text").css("paddingTop", procentaj_slider/12); There are ...
2
votes
1answer
137 views

Can writing a floating navbar's HTML at the bottom of the page increase SEO?

In my entry into SEO (and admittedly the subject is in constant change) I had read SEO Warrior. In that book it explained the concept of increasing a page's SEO value by placing navigation at the ...
0
votes
1answer
60 views

Do I really need to support older browsers?

When an automatic update hits Windows, it updates all software to the latest, stable version. When you update Linux, it does the same. Why should I worry about writing code for older browsers when ...
0
votes
1answer
50 views

What technologies do i need to learn to make a blog? [closed]

I am making my first website which will be my personal blog. My main purpose to make this is to learn website development. I know a fair amount of HTML, CSS and JavaScript. I understand these are all ...
1
vote
1answer
55 views

What kind of attack causes a JavaScript 'out of memory' on the attackers device?

We experienced a strange attack yesterday. Our error log picked up the same 'out of memory' JavaScript error from a single IP address every 10 seconds. The requests came from 6 client ports on the ...
0
votes
3answers
2k views

How to trace origin of script injected in my webpage

I was looking through a static site I created on my local server, in my web browser, and found a curious call to an external script <script src="https://engowe.com/ad.php?u=...
1
vote
2answers
853 views

Embed Facebook Page Plugin

I've been following facebook instructions in order to embed their "page plugin" in my website, and failing. (See instructions here.) Would you please take a look at my code and help me out? thanks in ...
0
votes
1answer
34 views

Is it possible to change a page given its URL?

I have an HTML page. There is a link to another page. When I load this other page, it has a header which I do not want to appear. I do not have access to edit the source code for the existing HTML. ...
4
votes
2answers
2k views

Does Bing execute Javascript when crawling and indexing web pages (like Google)?

Some content on some web pages is only displayed with Javascript when a button is clicked (for example). We know that Google executes Javascript and is (very likely) to find this content, but what ...
7
votes
1answer
2k views

For how long does the google bot wait after document ready before taking a snapshot of the webpage?

As the google bot lets the JS do its work on the page while crawling, for how long does it wait to let the javascript execute after document ready ? Suppose I have an AJAX response that takes longer ...
2
votes
1answer
832 views

Does e.preventDefault on link prevent the page from being crawled?

I have a couple of links in navigation on homepage that lead to new pages. When clicked on link, i want to prevent going on that page (e.preventDefault()), and instead load that page in popup with ...
4
votes
1answer
1k views

How to inform Crawler on AngularJS permanently moved page without losing SEO ranking

I am using Angular JS app and serving snapshots for crawlers when they visit. Changes are inevitable and hence certain pages are to be moved permanently (Redirect 301). For example: www.domain.com/#!...
7
votes
3answers
1k views

For webpages using jQuery, will the Googlebot index them on “page load” or after the “page ready” state?

Will the Googlebot index a webpage on "page load" or after the "page ready" state. The reason I'm asking is because I'm trying to change my h1 and h2 tags using jQuery on page Load.