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
3 votes
1 answer
494 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 ...
user avatar
  • 131
1 vote
0 answers
19 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 ...
user avatar
1 vote
0 answers
358 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 ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
2 votes
0 answers
215 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....
user avatar
  • 223
2 votes
0 answers
33 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'&...
user avatar
2 votes
0 answers
178 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 ...
user avatar
  • 357
1 vote
1 answer
2k 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 ...
user avatar
  • 63
2 votes
1 answer
118 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 ...
user avatar
  • 299
1 vote
1 answer
498 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 ...
user avatar
  • 111
1 vote
1 answer
85 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 ...
user avatar
  • 165
1 vote
1 answer
218 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?
user avatar
  • 2,233
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
375 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
1 vote
3 answers
2k views

GA Limit of 500 hits per session - workarounds & awareness?

We're currently walking the fine line between gathering as much data about the user journey and interaction with the site - and also being aware of our 500 or bust limit that GA analytics imposes on ...
user avatar
2 votes
3 answers
3k views

SEO impact of onclick handlers in place of links

I have a question similar to the one posted here. I'm building a React application which has very strict SEO requirements, so I'm wondering if the following approach is an issue: For all of our ...
user avatar
  • 155
2 votes
1 answer
170 views

Google search results show "Loading, downloading assets" for all site pages because Googlebot is not fully running JavaScript

I host maps. Each map has its own unique URL. But all these URLs return the exact same small HTML/CSS code, just to show something to the user while the assets and content are being loaded via Ajax. ...
user avatar
  • 121
2 votes
3 answers
834 views

Can JavaScript be used to obtain real-time GPS location data?

Is it possible to access GPS data (Country name, City name, Street name and house number) in real time on a smart phone with JavaScript?
user avatar
  • 21
1 vote
1 answer
116 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 ...
user avatar
1 vote
2 answers
71 views

How to use toggleToc() in a MediaWiki installation

I admin a wiki site running MediaWiki 1.29 and I have a problem collapsing the TOC on pages. I would be interesting in keeping the Contents box, but loading the page with it collapsed by default. It ...
user avatar
4 votes
1 answer
736 views

Does Googlebot execute Google Tag Manager?

I wanted to understand how Googlebot (and other crawlers) crawls my site. Specifically whether it passes a document.referrer and if it maintains localStorage keys, so I implemented a script via Google ...
user avatar
  • 85
0 votes
2 answers
80 views

When to render/build my html that changes frequently? [closed]

I am building a simple website that will display some information. This information can be retreived from a third-party service and changes on average a couple of days. Thus I need a way to ...
user avatar
  • 121
3 votes
1 answer
580 views

Does Google care about cached versions of site having Stylesheet and JavaScript files?

I would like to know if having Stylesheets and JavaScript files available for old, cached versions of a site benefits SEO in any way. Currently I'm adding a hash of the file contents to the file name, ...
user avatar
  • 131
6 votes
1 answer
243 views

Do cryptocurrency webminers in a blog violate adsense policies?

JavaScript based webminers are used to mine cryoto currencies by using visitors computing power on several sites. Is that illegal? Do they violate adsense policies ? As of now according to adsense ...
user avatar
  • 163
1 vote
0 answers
181 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 (...
user avatar
  • 11
1 vote
2 answers
281 views

Will adding a 'nofollow' attribute to links on my homepage result in crawling issues?

On my homepage I have three links that link back to my homepage. That means that a loop of links is being created. One link is in the header, one in the footer and the third is on my logo. Now when ...
user avatar
1 vote
1 answer
590 views

How to make a <select> navigation search engine friendly?

I have part of navigation in an HTML page that is routed by a select: <select id="archive" name="archive"> <option value="">Select an option</option> <option value="1">001&...
user avatar
  • 175
2 votes
0 answers
41 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 ...
user avatar
  • 21
1 vote
0 answers
73 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 ...
user avatar
  • 11
2 votes
0 answers
1k 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 ...
user avatar
  • 121
-2 votes
1 answer
38 views

Play ".ch" extension stream on HTML [closed]

I am trying to play .ch stream from a html player. But can't find the solution. .ch streams can be played successfully in Android via "ExoPlayer". But I want to embed them to my website too, but none ...
user avatar
1 vote
0 answers
208 views

Safari 11.0 is blocking some of our scripts [closed]

Here is a quick video describing the issue - https://screencast.com/t/zTnbBoWYmY Since the new Safari 11 we have an issue where our content isn't loading properly. We are getting messages such as ...
user avatar
  • 11
1 vote
1 answer
45 views

How to deal with a big structure website performance

first of all thanks in advance for taking the time to help me out. My doubt resides in how the performance is affected if I decide to develop a website only with html, css and javascript or if I ...
user avatar
  • 125
2 votes
0 answers
888 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? ...
user avatar
  • 41
1 vote
1 answer
124 views

Help determining what is injecting broken code into my website

On my website, I log client-side errors. Recently, a number of my users have been experiencing the following error: SyntaxError: Unexpected token var and the "file" in which this occurs is: data:...
user avatar
  • 267
1 vote
2 answers
219 views

Is it cloaking to use e.preventdefault on the link to the second page to make users register before continuing?

We have a very voluminous site. We want to index around 50,000 pages. We want the pages to be all in the Google index and accessible. We also want that if a user arrives on the first page, when he ...
user avatar
0 votes
0 answers
74 views

Are the links in JavaScript considered as Toxic Backlinks? [duplicate]

I have the similar question as asked at Does Google count external Javascript or CSS files as backlinks? Actually, I have suddenly found an increase in a number of backlinks and decrease in my SEO ...
user avatar
1 vote
2 answers
2k views

HTTPS. Solution for "This page is trying to load scripts from unauthenticated sources" from third-party sources

I've got a website using third-party JavaScript scripts, from Google AdSense (to show ads), Google Analytics (to track visits), Google Maps (to show maps) or Facebook (to allow users leave comments). ...
user avatar
  • 423
2 votes
2 answers
161 views

Is this document write of content fetched from another site cross site scripting or something different?

This was on a website I had to work on. It seems to me its a horrible idea, but I was hoping to get other input before I told them it was. var url = 'https://www.otherdomain.com/magic_php_file.php'; ...
user avatar
  • 21
3 votes
1 answer
81 views

URL param additions on page load w/o page reload SEO design

I'm building a single page application and I'm using a client-side routing library to handle URL/state changes. Let's say Googlebot visits example.com/my-shop-name/menu, the menu-items for my-shop-...
user avatar
  • 131
3 votes
1 answer
165 views

Does Google index JavaScript ALTERED content over original content?

I know Google nowadays is pretty good at scanning the DOM and adding stuff to your site using javascript isn't a problem anymore. Thing is, I'm using JavaScript (jQuery) to collect information from a ...
user avatar
1 vote
0 answers
18 views

How could viruses/malware launch from websites in user environment? [closed]

I'm familiar with web frontend only superficially. However I'm wondering how is it possible to inject virus on the web site and cause it to run in the user environment (PC) only by visiting specific ...
user avatar
1 vote
0 answers
43 views

how to use html5 audio player to play single song whose content is divided into an array of urls? [closed]

I get multiple urls for same song url1 -> first 5 sec of song url2 -> next 15 sec of song and so on I have to use them to play the song without any lag. Is it possible using html5 audio ? Thanks in ...
user avatar
  • 151
2 votes
1 answer
708 views

How do 404/410 responses for old JS files affect SEO?

I use Autoptimize (AO) for pagespeed optimization. Everything is good on that front, but I notice that I often get 404 pages in my logs, typically from Google and other bots (I assume), trying to ...
user avatar
  • 33
2 votes
0 answers
168 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 ...
user avatar
2 votes
0 answers
148 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>...
user avatar
0 votes
1 answer
1k views

Is there a better way to implement dynamic pagination in javascript for SEO? [closed]

So I don't have access to any server side languages only javascript. I currently have pagination implemented on a page that dynamically pulls in data from an xml file. Below is an example of the ...
user avatar
0 votes
1 answer
352 views

Will domain name with keyword "Android" makes any legal problem? [closed]

I am planning to buy a domain with keyword "Android" to my website. But i am worried about having any legal problem doing this. If i am buying what all things i have to look forward?
user avatar
2 votes
0 answers
337 views

Desktop angularjs website not opening on uc browser [closed]

I have built a desktop site on angularjs.The problem i am facing is that i am not able to open it on uc browser on mobile.Is there any way to debug this issue ?
user avatar
  • 151

1
3 4
5
6 7
16