Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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.

51 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
825 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)...
3
votes
0answers
52 views

What is the name for a paginated scrolling effect with distinct stopping points in the scroll?

For example: http://deppo.tkdemos.com/portfolio/grid-references-in-the-latest-issue/ What is the name of the scrolling effect used on the link above? Where when you scroll or arrow down the page ...
2
votes
0answers
9 views

Explanation needed with Django and AMP logic using 1 url

I'm using AMP at one of my parts of the website with Django template and python, my question is what will happen to a page (*SEO wise) if I take and break an AMPed page (only on desktop) and leave the ...
2
votes
0answers
78 views

Is there a problem in adding Adsense verification code via JavaScript?

I work with a certain CMS (MediaWiki) in which there is no direct control over HTML (as there is in Drupal Twig files for example); Hence, in this case, I have to load my Adsense verification code via ...
2
votes
0answers
10 views

How to include a link in email that opens an Android app if available, but opens the website if not?

In HTML code for an email is there a way to have a fallback URL when a primary URL cannot be handled? For example: Open app when using Android Open website when clicking on it on a desktop I know ...
2
votes
0answers
1k views

How do I use the ga() function in Google Analytics when the tag is in Google Tag Manager: Uncaught ReferenceError: ga is not defined

I'm following this: But in my real code, I've used google tag manager to manage google analytics. So I have just one script in the head of my website which belongs to gtm: (function(w,d,s,l,i){w[l]=...
2
votes
0answers
244 views

How to setup custom dimensions in Google Analytics?

I have been working to track the user visiting my website with their userID. I am able to see the user by using user explorer in the GA View. But i want to fetch the data over the API to do achieve ...
2
votes
0answers
32 views

How to determine how much memory 1 million particles in WebGL is using

I would like to know how much memory is being used by a system of 1 million particles in WebGL: I am not really too sure on what to look for in the performance/memory panels in the Chrome devtools / ...
2
votes
0answers
163 views

Does Googlebot cache JavaScript files between two pages if they expire in one year?

My question is about javascript websites. Suppose GoogleBot has crawled example.com/index.html?id=1 Does it request all the javascript files again when crawling example.com/index.html?id=2? index....
2
votes
0answers
28 views

Validation error from htmlvalidator.com using wp_enqueue_script that text/javascript is obsolete

This code was being flagged on my Wordpress website: <script type='text/javascript' src='http://www.publictalksoftware.co.uk/wp-content/plugins/simple-download-monitor/js/sdm_g_recaptcha.js?ver=1'&...
2
votes
0answers
125 views

Crawling a SalesForce site fully generated by JS with Screaming Frog only gets content on some pages

I'm trying to crawl a Salesforce-generated site. This site appears to be fully generated by Javascript (if you load the page with JS disabled only a white screen shows up). For instance, Salesforce's ...
2
votes
0answers
39 views

Make the content of JavaScript and JSON powered review widget searchable in Google

I have created a review widget, which can be injected on any page. The widget will help a page owner generate content from visitors reviews and questions. I have to make this content searchable on any ...
2
votes
0answers
406 views

Updating address bar with new URL on local .html file

I'm having an html file somewhere placed on my computer for example file:///C:/Users/index.html Is it possible to manipulate that URL (using code inside that file) in a Browser which opened the file? ...
2
votes
0answers
106 views

Can search engine find ReactJS component when using with Laravel

I am new to ReactJS and Laravel and trying to build a web app using these both technologies. https://medium.com/@adelekandavid2013/reactjs-app-with-laravel-restful-api-endpoint-part-1-b3991dbf99f2 I ...
2
votes
0answers
133 views

Googlebot is not fetching and rendering all my content if I have a DFP ad in a list

I am working on reactjs. I have a an infinite scroll component to render and I am adding DFP ads at certain positions in the <li> tag. I have a DFP in my list like: <ul> <li>...
2
votes
0answers
40 views

How to enable Site search tracking in Google Analytics when query parameter is a fragment identifier?

I am trying to enable site search tracking on my intranet, but because the query parameter is a fragment identifier, I get no result. Here is the URL of a search result for the word "paper": https://...
2
votes
0answers
927 views

Auto open fullscreen on another monitor

I have been asked by a local company to build an internal system using asp (as all their databases are msAccess and they are not interested in changing). At the moment they are having to visit two ...
2
votes
0answers
28 views

How to improve the Autosuggestion Google Maps

I have seen the following example of the Autosuggestion Google Maps feature https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?hl=en However, if I put a given ...
2
votes
0answers
375 views

How to add Google App Script as a gadget to Google Calendar?

I created a small App Script with a small UI. Now I'd like to have it as a gadget in my Google Calendar. I tried to embed a gadget with the following basic XML: <Module> <ModulePrefs title="...
2
votes
1answer
244 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, ...
1
vote
0answers
12 views

How to fix Mobile Usability Issues (page resources are not loaded) in Google Search Console

Our website is responsive but it is showing the below mobile usability issues at Google search console. 1. Content wider than screen 2. Clickable elements too close together 3. Text too small to read ...
1
vote
0answers
18 views

Mobile Web: Sliding whole page over to reveal navigation underneath

I'm making an all new mobile version of one of my sites. And I've decided that the way I want to do navigation is to have the 'hamburger' button cause the entire page to slide to the right, revealing ...
1
vote
0answers
18 views

Make JavaScript Generated content appear on Search Engines, where content differs on a Single Page

I have a PWA hosted on Firebase. On the main URL, like example.com, there's a lot of content that is generated by JavaScript. At the same time, whenever someone accesses example.com/?key=value, where ...
1
vote
1answer
199 views

Google SDTT does not fetch structured data by URL

I initially wrote some code that created the structured data for breadcrumb and product markup on the server's side and rendered them in the <body> of the page. While the mark up was correct ...
1
vote
1answer
40 views

Can you put all the text in a static tag for SEO but completely re-write the page with JavaScript?

Can our website used the trick: putting all SEO data in some tag, but rendering all the web page elements with JavaScript? How would that work for SEO? May be like: <div> <a href="/about"...
1
vote
0answers
40 views

generating part of html with javascript to increase the page loading speed

I've got picture gallery on my website that contains few hundreds of images. These are miniatures that are enlarged when have been clicked. The images are well optimized (they are compressed using one ...
1
vote
0answers
59 views

Method to prevent Google from viewing the addition of many external links at once negatively: nofollow VS iframe VS javascript?

I need to add blocks to the main content of a site. Those blocks contain multiple (between 15-30) links to different websites (with related content). I currently do have good SEO and before I ...
1
vote
0answers
42 views

Googlebot cannot access 'maps.googleapis.com' and '.js'. Is this preventing my site from getting indexed in Google search?

When I fetch and render it is showing partial. It looks fine. The same way Google sees it is the same way visitors see it. But 'maps.googleapis.com' and '.js' are showing blocked. But I didn't blocked ...
1
vote
0answers
73 views

Do too many google chart scripts affect adsense loading

I have a fairly dynamic website that uses google visualization api. (Every page displays 6 to 10 charts.) <script type='text/javascript'>google.charts.load('current', {packages: ['corechart','...
1
vote
0answers
852 views

JavaScript console errors in Google Search Console - is it still mobile-friendly?

I am seeing mobile usability issues in my Google Search Console report. When I tested the pages they were 'Mobile Friendly' but there were some page loading issues: page resources couldn’t be ...
1
vote
0answers
316 views

How to remove form autofocus on a Twitter Bootstrap form

I'm using Bootstrap on a site. Bootstrap is loading via a cdn. I can't edit the code directly. How can I remove the form auto focus? When I visit the page it automatically jumps down to the bottom of ...
1
vote
0answers
43 views

What is it called when an HTML block floats while scrolling down the content until something else takes its place?

Recently updated my blog and was looking for the improvements they have added. I noticed a floating section of text that stayed there until a part of description ended. (Similar to the timestamp on ...
1
vote
0answers
146 views

Get cookies from a third-party site by sending login information using JavaScript

I have a website (ASP.NET) which also provides an API. But to access it, it requires login. I want to connect to this site with javascript, 'send' the user credentials to it and receive the cookies (...
1
vote
0answers
50 views

Does a websocket based site for best possible speed combine well with SEO?

I'm tasked with creating a website and doing whatever it takes for the best possible speed. Preferably the content of the website is updated real-time (or close to real-time). As such, I thought it'd ...
1
vote
0answers
790 views

How is Google's indexing affected by history.pushState? When should it be called?

I am maintaining a single page app and I am trying to make it friendlier to search engines. The way the page works is that when a user clicks on an internal link, an AJAX request is made to fetch new ...
1
vote
0answers
645 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....
1
vote
0answers
37 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
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 ...
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 ...
1
vote
0answers
136 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
0answers
60 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
0answers
426 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
32 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', 'UA-...
1
vote
0answers
16k views

Line Feed or Carriage Return - What to use?

In javascript, Line Feed and Carriage Return behaves similarly. Which one to use and when? OR Can it be used alternatively? Unicode Characters: Line Feed: \u000A Carriage Return: \u000D Code: &...
0
votes
0answers
11 views

How to update Google's index for AJAX fragments?

We replaced our old site with a Wordpress site around 6 months ago. Our old store plugin used links with AJAX fragments which were indexed in Google, like so: https://www.example.com/store.php#!/item/...
0
votes
0answers
21 views

SEO for daily changing content with infinite scroll or load more strategy

I have implemented a page that has Listings with shortened teaser content. It infinite scrolls to continue revealing more listings as you scroll via Javascript. The result is something like Quora. ...
0
votes
0answers
16 views

How does googlebot indexing javascript mixed links (href & onclick on same element)

It's been about 5 years since google indexing javascript and I'm still confused about details. I read here ( Does Google perform onClick actions? ) basics. And then I know that javascript created ...
0
votes
1answer
27 views

How to see how scripts are being loaded in a page?

Using the Inspector tool in a browser, a waterfall can be seen. Also the type of cause for loading specific elements is mentioned, and it can be explored further in the Stack tab for that specific ...
0
votes
0answers
22 views

Can I prevent loading some HTML body and head in PWA when javascript is enabled?

We have restricted resource and we can not use server side technology in our website.We are using PWA technology.What is our solution to pages indexed correctly in Google? Can we load some head tags ...
0
votes
0answers
184 views

Why would the Google cache and Googlebot not render images?

I’m auditing an e-commerce website but I’m having really difficult time figuring out why Googlebot can’t render the pages correctly. When I check the cache of the pages I see that Googlebot couldn’t ...