Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
20 views

Mobile-Friendly errors from JS/CSS folders in Google Search Console

Google Search Console is warning me about Mobile Friendly errors. But all the errors are coming from the assets folder where I keep my CSS and JS files. Can anyone can help explain these errors?
1
vote
0answers
16 views

Browsers load actual website from external server and keep in cache [on hold]

So, currently, I'm using 000webhost to host my website, but they only allow 1000 MB to store all the files for my website, which IMO is a little small. So, what I want to accomplish is something like ...
1
vote
0answers
16 views

JavaScript and CSS cached and not updating not updating from WAMP server even though “view source” shows most recent file

I have a WAMP server with PHP 7.2.10. When I change a file, for example .css, the changes is not visible in browser. When I "view source" via my browser (ctrl+U) I get the updated latest version of ...
3
votes
4answers
56 views

Google showing dynamic page title set by JavaScript rather than the static title embedded in the HTML

On my website the title is initially set through the title tag in the html served by my server. It is then changed to its dynamic equivalent through JavaScript. I want Google to show my website's ...
1
vote
1answer
16 views

Datalayer pushed 'topic' leaking on incorrect pages?

We push in the pages topic into the data-layer, this is autopopulated based on the category being selected when editing the page/post in the back-end (Wordpress). <script> window....
0
votes
0answers
7 views

Google Ads disapproved due to iframe [duplicate]

I originally posted this question on stackoverflow and it was flagged as not programming-related and the suggestion was to try posting in this exchange. I took a look at similar issues in this ...
1
vote
1answer
39 views

SPA website, would making an HTML-only version for SEO be worthy?

I made a Vue.js SPA, and since it could affect SEO (specially because a large portion of my client base is not using Google), I was thinking: why not providing an HTML-only version for it? Would ...
1
vote
0answers
27 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 ...
0
votes
0answers
6 views

req.user.roles = undefined? [migrated]

code: function isAdmin(req, res, next) { if(req.isAuthenticated()) { console.log(req.user); console.log(req.user.roles); next(); } else { res.redirect('/login'); } } output: { ...
1
vote
1answer
100 views

NGINX - Rewrite version number in JS file name to parameter for PHP

I had a rewrite from file.js?c=123 to file.js.php?c=123 but query params were downgrading my SEO evaluation. Actually, some proxy CDN do not cache query params. server { location ~ \startscript....
0
votes
1answer
32 views

Is it safe to use JavaScript to insert GoDaddy site seal <script> into an HTML page?

The site seal provided by GoDaddy uses HTML code like: <span id="siteseal"><script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=...
1
vote
0answers
52 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]=...
1
vote
0answers
25 views

How to create a pageview using ga() function? [duplicate]

I manage google analytics inside google tag manager and I don't have any separated script for google analytics in the head of my website. I need to use ga() function like this: <!-- Google ...
0
votes
1answer
40 views

Can I have duplicated markup using schema.org?

I have this: <span itemscope itemtype="http://schema.org/NewsArticle"> <meta itemprop="mainEntityOfPage" content="true"> <span itemprop="author publisher" itemscope itemtype="...
2
votes
2answers
69 views

How to listen to gtm events fire from javascript file in my webpage?

I am using gtm with Universal analytics tag in my website. I know gtm fires - "gtm.js", "gtm.click", "gtm.dom", "gtm.load" etc events and send event data to google analytics based on rules specified ...
1
vote
0answers
59 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 ...
1
vote
0answers
12 views

Opening a pop up window automatically on the date mentioned in the function [closed]

I want it to remain open from the specified date onwards. This is the code I have. <script type="text/javascript"> function newPopup(url) { popupWindow = window.open(url,'popUpWindow','...');...
1
vote
1answer
55 views

Googlebot refuses to render more than index.html in Ember app

I am using Ember 3.0.0 to create a booking site. Title and meta tags are handled via ember-cli-meta-tags and seem to be rendered correctly when pages are opened in the web browser. However, Googlebot ...
1
vote
1answer
55 views

Internal searches using AJAX affects SEO?

I have read in some sites that is a good practice for SEO to use URLs like www.example.com/params-for-your-search as words separated by hyphens. I'm creating a SPA ReactJS Application where I have a ...
2
votes
0answers
24 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 / ...
0
votes
2answers
43 views

JavaScript Charts Vs Server Side Generated Images For SEO

I am currently using Google Visualization (Charts) API to display charts on my website. Fetch and Render on Search Console renders blank spaces in places of charts (quite understandably), while charts ...
1
vote
2answers
31 views

How do I have my javascript “dynamically injected into the page's contents”?

I have a script off site for a Schema (structured data). My Antiquated CMS does not recognize HTML5 and will modify Javascript in the html so I have to have it in a separate file. The problem is ...
0
votes
1answer
72 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 ...
0
votes
0answers
29 views

Does too much JavaScript discourage bots from indexing?

Along with lengthy content I am using many JavaScript components like client-side graphs (Google charts API), DoubleClick (with Adsense) and others. When I fetch and render from Search Console, I can ...
3
votes
0answers
42 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 ...
0
votes
0answers
27 views

Accessing pdf using iframe on different IP

I have WAMP installed in a machine in IP address I just call as IP1. I can access the PDF files in this IP1 inside the www folders using iframe with no problem. But there are other PDF files inside ...
2
votes
1answer
182 views

Is a dynamic page title tag updated by JavaScript bad for SEO?

I was on Infinium's (web/app design agency) blog and noticed that when I clicked on another tab in my browser, the title tag changed from "Best Rails image uploader..." (the title of the post) to "...
1
vote
0answers
35 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','...
0
votes
0answers
36 views

Hidden Link through JS or AJAX

Is there a way to hide a URL behind JavaScript? I want to place ads where the GET URL isn't obvious. I'm thinking that perhaps some JS or AJAX can take the brunt of the work to forward the user. I ...
4
votes
2answers
311 views

Rewrite all URLs within subdirectory to index.html so JavaScript can use the path

I have a part of domain example.com/~mypart. In that folder is index.html. If I visit example.com/~mypart/something I get a "Not Found" error. I want every address with some string after example.com/...
1
vote
0answers
305 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 ...
4
votes
1answer
192 views

Dynamic content using .append() or .innerHTML() and SEO

I was looking for some clarification on something I am looking to implement, I would like to know how a Google Crawl will see this and if it would be detrimental to SEO. On my webpage I have an empty ...
1
vote
0answers
121 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 ...
3
votes
1answer
76 views

Will “dofollow” work for non-anchor tags?

I'm developing a SPA using Ionic, and for performance, UX, and indexing reasons I'd like to use <span> tags instead of <a> tags, as the latter doesn't work very well with Ionic's stack-...
3
votes
1answer
96 views

Can Google read structured data that is written by JavaScript depending on the URL parameters?

Is it possible to create a page with different structured data depending on the URL parameters? According to Google: Also, Google can read JSON-LD data when it is dynamically injected into the ...
1
vote
0answers
12 views

Weird response from website buttons [closed]

I'm building a website using html, css and JavaScript. I'm having issues with the buttons on my page, where I have to press them twice to activate them, after that they work fine. It appears that this ...
1
vote
0answers
36 views

How to get the current slide position in Swipe 2? getPos not working [closed]

Answer from https://stackoverflow.com/questions/16577646/swipe-js-getpos-and-getnumslides-help-needed Does not seem to work. Since I'm not an expert at Javascript I can't solve this. Any help on ...
1
vote
0answers
12 views

RadioButton Onclick call a javascript file? [closed]

I am new to all of this as I am trying to learn. If I create a Javascript file(For organization) then have a button, when I click on the button, how can I call the Javascript file in my folders to do ...
2
votes
0answers
113 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
23 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
50 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 ...
0
votes
0answers
42 views

Why is Firefox's console data output different than that of Chrome's?

I'm calling an ESRI webservice and once I'm receiving a response, the console.log(response) line is showing data in different way in different browsers. For example: Chrome (this is the preferred way)...
1
vote
1answer
502 views

Loading an external HTML file into another - does it have an affect on SEO?

I have my first web project which will approximately be 50 pages. Up until now I've just done 5 page websites, so if I needed to e.g. add a navigation link, I would just quickly type the code and copy ...
2
votes
1answer
62 views

SEO affect on generating table of content on the fly

In my Drupal site I'd been adding the TOC while feeding the content and on saving both get stored in the database. This TOC is really useful for the visitors (Google also likes it). However I want to ...
1
vote
1answer
192 views

Link having both click handler and href attribute, which one is invoked by Googlebot?

I have the following anchor code on my site: <a href="/mypage.html" onclick="return getMyPageWithAjax();" >My Page</a> For human users, the onclick will get the data with AJAX without ...
1
vote
1answer
34 views

For SEO, should I integrate iFrame google maps within noscript if I load the map dynamicly?

Hey I use javascript with the IntersectionObserver to load google map API when the user scroll down to the bottom of the page (where my map div is at). I was wondering if I need to add an iFrame at ...
1
vote
1answer
68 views

Can Googlebot crawl JavaScript charts?

I am thinking of using Google Charts API to generate client-side charts on my website. However, my concern is whether Googlebot (for search) will be able to recognize the data?
1
vote
1answer
869 views

Does totally disabling cookies in my WordPress website malfunction Google Analytics?

I personally don't post any kind of external advertisements in any of my websites: Not Adsense, not anything. I just don't charge other organizations and companies to advertise in my websites and I ...
0
votes
1answer
101 views

Is it bad for SEO to remove some DOM element after page has loaded?

I'm creating a blog template that generates a div with the main content within (articles, lists of posts, authors, etc.). This content is parsed by JavaScript when the page loads and then removed, to ...
0
votes
1answer
268 views

Will this hidden element be count as SEO Spamming? [closed]

As you know, search engine robots sometimes count invisible elements as SEO spam. I have a website that i want to improve SEO performance. I'm planning to make homapage as like below. Will this be ...