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.
1
vote
1answer
28 views
Where do Google get canonical links of a one-page site?
With my miserable JS knowledge I understand that the page originally has a line like this: and then href parameter is changed via JS. Both SF and Deepcrawl are not able to see that change. Thus, all ...
0
votes
0answers
6 views
jQuery load function after all other AJAX calls are complete [migrated]
I have jquery .each loop going through an array. For each item in the array it is doing an AJAX call. When all the AJAX calls are complete, I want to reload part of the page using the .load() method....
0
votes
0answers
4 views
Resizing an iframe when page is loaded in the background [migrated]
I'm trying to get my iframe resizing script working when a page is loaded in a background tab. Currently, the resize works great when a page is loaded into the foreground, but doesn't fire at all if ...
1
vote
1answer
42 views
Google SERP's not displaying target/current page in breadcrumbs
I've used Google's example JSON-LD markup to display breadcrumbs in the search results (https://developers.google.com/search/docs/data-types/breadcrumbs). Google shows breadcrumbs in the search ...
0
votes
0answers
27 views
Why wouldn't Google be able to read AJAX generated JSON-LD schema.org markup parsed from a Google sheet?
There's a lot going on in that question so here's a breakdown: Every Google sheet has a JSON version that can be parsed (example). I've parsed that data using pure JS and AJAX, and generated schema....
3
votes
3answers
53 views
Is animating in Navbar a good idea? [closed]
I am animating in my Navbar with GSAP when the page loads. The navbar is being animated in by changing the height from 0 to 100%. The height in css is always set to 0 and it worries me if the ...
1
vote
1answer
18 views
Noncrawlable Javascript Pagination Issue
We have just completed a revamp of a website with a new design and I had noticed something when running the sitemap generator for the new site. The new site uses javascript pagination which fits the ...
0
votes
0answers
14 views
How to fetch as google with angular site on github pages [duplicate]
I have a hobby site with lots of info about a certain online game. It is written using angular and published via github pages. Currently the urls are all like https://aaaaaa.github.io/aaa/#/items/...
0
votes
0answers
18 views
Setting up an A/B test in Google Analytics
I have created an A/B test using Google Analytics but seems not to be working correctly. My goal is to launch two sepparate versions changing a button color and detect which one performs better(is ...
1
vote
1answer
42 views
“wiki is currently unable to handle this request” after installing SimpleMathJax on MediaWiki
I need to show mathematical terms in mediawiki-1.26.2 so I tried to install SimpleMathJax on mediawiki. I followed the described in extension page: I downloaded SimpleMathJax-master.zip then extract, ...
0
votes
0answers
16 views
Google Analytics Custom Dimensions returning unrelated output on WordPress Blog
I have a Blog hosted on WordPress where each Blog post is assigned a single Category and multiple tags. I want to capture Analytics of all pages grouped under Categories i.e. Each page URL must be the ...
1
vote
1answer
23 views
Allow Googlebot to crawl dynamically generated product pages
I have been doing some reading into how Googlebot crawls javascript generated webpages but am still a little confused on it. Say I have a web page for company XYZ Inc that has 5 general products like ...
0
votes
0answers
4 views
My knockout.js website is not crawled by google [duplicate]
Some pages in my website are implemented using KnockoutJS (ajax JS framework) For some reasons these pages are not crawled by Google Pages which are not indexed: fidelite.kz/#!product_info/1 ...
1
vote
1answer
20 views
Generate Virtual Pageview via .js OnClick event in Google Analytics
I have some expanding sections (via .js) and I want to see when the user clicks those. So, in the OnClick event I want to attach some .js to fire off a virtual pageview. (I know how to fire an Event ...
0
votes
1answer
20 views
exchange value between two dropdown boxes html [closed]
I'm building a dictionary web. Like every dictionary app, we choose two languages from two drop down boxes. And if we click the "<->" button, two chosen languages will exchange side. For example, ...
1
vote
1answer
25 views
Why everyone uses unsafe content security policy?
I see that all big websites like Google or Facebook, even my bank uses content-security-policy header with unsafe-eval and unsafe-inline. Is there point in using csp if such big companies disable it? ...
3
votes
1answer
69 views
Are Googlebot and other search engine crawlers able to detect if element is hidden after page load by JavaScript?
So, we all know Google hates hidden elements, and rightly so. But I am curious, what if the element is present in DOM normally in the static form, but after page load, it is hidden by JavaScript? ...
1
vote
0answers
20 views
SEO Impact of Javascript for typography (like kerning.js, lining.js & co)
From the design perspective the typography options presented by css are somewhat limited and there exist many javascript libaries that give us very handy tools to manipulate the font-rendering. ...
1
vote
0answers
48 views
Would could Google not index an AJAX news feed after 1 month?
I have a website that in page1.php uses a news API from other website. It has JS calling a PHP method like this: <script id="mdval" src="http://example.com/parvazproject/parvaz.php?c=...
2
votes
1answer
75 views
Is it SEO compatible to set the page title with JavaScript at load time?
I want to change some page elements with JS like title h1,h2,h3, p tags and so on. So I want to place in my code something like $(function() { document.title = "This is the new page title." });...
2
votes
0answers
48 views
How to find out javascript functions for above the fold?
There are plenty of tools to get css rules for above the fold (critical css path), like this one. But how could one find out, which javascript functions are needed for above the fold area? The ...
1
vote
1answer
58 views
Does Google perform onClick actions?
Can somebody approve to see, that Google (googlebot / crawler) performs onClick (or similar js) actions? It is fact, that Google performs POST - i'm interesting, whether somebody has realized any js ...
0
votes
1answer
22 views
seo implication of taking user to some other link rather than href given on anchor through javascript
I have the following URLs on a page: <a class="mylink" href="http://www.example.com/old-product1" /> <a class="mylink" href="http://www.example.com/old-product2" /> <a class="mylink" ...
2
votes
1answer
30 views
Fetch as Google huge margin on top and bottom [closed]
My website has recently started dropping in Google rankings so I started checking out Webmaster Tools. Weird thing is when I used Fetch as Google with render, I noticed huge margins on the top and ...
2
votes
2answers
70 views
Should I dynamically change title/alt of image for SEO?
I use Angular in my application, where I have ng-repeat directive on images (which means, that in my HTML I have only one img tag for all image objects that I receive from server). Should I also ...
1
vote
0answers
19 views
How to create newsfeed [closed]
I have been working on a project of making a website, and I would like to incorporate a newsfeed (similar to Twitter/fb) where all of my users can see other users updates. I have my login and ...
1
vote
2answers
49 views
Block inline scripts from executing?
I need to test a page with no scripts running/executing. I've tried NoScript and uBlock but they seem to only stop externally linked scripts from being executed, not those in ... tags. Any ...
0
votes
3answers
41 views
The webpage is in JS but still text browsers are reading the content. How is it? [closed]
I was checking the site giftedandtalented.com. first of all the the source code is so cluttered. When i disabled the JS in my browser, except for top navigation nothing showed up but when i checked ...
4
votes
2answers
75 views
Workaround for appearing to change the URL of an infinite scrolling page when pushState is not available due to analytics
I'm building a website and they want it to be an infinite scroll single page design, and to be as SEO friendly as possible. Just to give you an example: Here is an example URL structure: com ...
3
votes
1answer
41 views
How to tell if an incoming connection is a cellular network or not
I've got a page that will be loading a bunch of fairly high resolution images, as well as a full HD video. Is there a way to detect if someone is using cellular on their phone vs wifi, so I can use a ...
4
votes
3answers
97 views
Embed Google Analytics Reports On Website
I want to embed Google Analytics charts into my website so that from the admin console I can view certain analytics charts without needing to log into the Analytics console. I have come across the ...
0
votes
0answers
24 views
Google Analytics events being sent before pageview. Getting “Bad Event Tracking Code” warning
I just noticed an alert from Google Analytics saying: "Bad Event Tracking Code: (not set) entry present in reports..." After doing a ton of research on this, it seems that some of my events are being ...
1
vote
1answer
71 views
Google Tag Manager and Data Layer under the hood
I am really newbie in all this marketing stuff, so I understand everything much better on the software layer. Phrases like : "Add this script to your page directly after body tag and it will work" ...
3
votes
1answer
519 views
restricting Google Maps js API keys to just my domain
My site uses the Google Maps javascript API, so I'm using a "Browser key", which is plainly visible in my javascript to anyone who does "View Source". Google's documentation on Browser keys in ...
0
votes
0answers
57 views
Blogger Refused to execute script from because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled
Hi I have a blogger site with custom domain and the javascript code don't work with the custom domain. When I use the blogspot.com domain then the javascript code works but when I change it to custom ...
4
votes
3answers
151 views
Lazy loading images (with data URI) and effects on SEO
I've seen this question: Lazy loading images and effects on SEO My question is very similar, except that I am using data-uri images like so: <img width="1100" height="340" class="img-responsive ...
1
vote
1answer
30 views
Is noscript mandatory for worldwide compliance page compliance?
I tested a random page of mine with javascript on achecker.ca four times: once using the "Stanca Act" guideline in the scanning options, once using the "Section 508" guideline, once using the "WCAG 1....
4
votes
1answer
60 views
Can I randomly change the page title for users while showing search engines a static title?
Let's say I wanted to make a website or series of pages where the title (or at least what appears on your browser's tab) alternates randomly each time it's loaded - just for giggles. I have a bank of ...
0
votes
0answers
16 views
It's 2016. How much JavaScript does Google understand? [duplicate]
Google deprecated its AJAX crawling scheme which seems to suggest that it can now index JavaScript applications. People now start testing the limits of what the bot can do with JavaScript, with ...
0
votes
2answers
31 views
Discrepancy beween Google Analytics and Adword Data
We are facing an issue with data discrepancy between what is reported by adwords and analytics console of google. Wanted to check if someone else has faced a similar issue and what could be potential ...
0
votes
2answers
38 views
Image generation from spreadsheet data
I work in retail. For promo sales we're given a spreadsheet with data containing the information about the product and its prices. With this data we're supposed to create sale tags. More specifically, ...
3
votes
1answer
125 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
31 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
69 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 ...
2
votes
1answer
33 views
Adsense ads don't appear even if account approved
I have a website that runs on Apache2 and has code in PHP and JS + HTML. Link to site: http://goldfaucet.xyz This is the code of my ad unit: I have an approved Adsense account that already was ...
0
votes
0answers
7 views
How to Create a sitemap in MEAN stack? [duplicate]
Well I am creating a Application in MEAN stack but I don't know how to crate a sitemap for MEAN stack
1
vote
1answer
37 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) ...
0
votes
0answers
17 views
JavaScript encoded links on an AngularJS framework…bad idea for Google?
I have a site where we're currently deploying code in AngularJS. As part of this, on the page we sometimes have links to 3rd party websites. Definitely Avoiding: We do not want to have followed links ...
2
votes
1answer
22 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
19 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 ...