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
1
vote
0answers
140 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
2answers
233 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 ...
1
vote
1answer
319 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&...
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 ...
1
vote
0answers
48 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
764 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 ...
-2
votes
1answer
22 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 ...
1
vote
0answers
114 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 ...
1
vote
1answer
38 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 ...
2
votes
0answers
390 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? ...
1
vote
1answer
96 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:...
1
vote
2answers
98 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 ...
0
votes
0answers
54 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 ...
1
vote
2answers
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). ...
2
votes
2answers
49 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'; ...
3
votes
1answer
72 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-...
3
votes
1answer
155 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
36 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 ...
2
votes
1answer
443 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 ...
2
votes
0answers
103 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>...
0
votes
1answer
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 ...
0
votes
1answer
201 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?
2
votes
0answers
280 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 ?
3
votes
2answers
383 views

Does Google count external Javascript or CSS files as backlinks?

Is there any information available on whether search engines (Google) count external Javascript or CSS files as backlinks? Example: Does loading FontAwesome from their CDN count as a backlink for ...
4
votes
1answer
500 views

Separate URLs on tabbed content - good or bad for SEO?

I am building a site that lists shops. Each shop page has two tabs: shop info and reviews. It's one page, with jQuery hiding/showing the right portion of the content. From a purely SEO point of view, ...
7
votes
2answers
493 views

Is Facebook mining passwords from my website?

I just took a look in my bug tracking software and noticed a lot of client-side errors that look like this: SecurityError SecurityError (DOM Exception 18): Blocked a frame with origin "https://...
2
votes
1answer
201 views

Using HTML5 EME (Encrypted Media Extensions) for JS

I am thinking about developing a paid JS script, and I wanted to prevent its piracy by using HTML5's EME to safely decrypt and use my JavaScript file client-side. Can EME be used for more than just ...
2
votes
1answer
96 views

How to get my # links on my single page site indexed by Google

I own a One Page Site. Google is only indexing the home page -> example.com. I tried adding it in Google Webmaster Tools/Search Console how it should be displayed: http://example.com/#ueber-desjash-...
1
vote
1answer
434 views

<canvas> for chartjs versus AMP

On my WordPress blog in default mode I have a <canvas> where I draw a chart with ChartJS. I've just downloaded the AMP plugin, run the Google AMP Test tool, and it says: Fix the following ...
2
votes
0answers
39 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
2answers
3k views

Is loading the article content using jQuery & AJAX bad for SEO?

I am loading the content of main article using jQuery . Is it effective for SEO? Is it bad practice? For example I have a page URL example.com/ariticle?seid=14 Here when the page loads, I fetch the ...
5
votes
1answer
820 views

Google crawler and dynamic websocket website

I have a a big problem that I'm only considering after I have finished development of a webpage. My page is written with only a skeleton HTML. All the actual content of my site is sent through ...
2
votes
1answer
516 views

Does escape fragment works without a hash in the URL?

I have done SEO for a site in angularjs 1 using phantomjs. The site has enabled html5 mode true so there will be no "#!" in the URL. I have added a check for $args ~ _escaped_fragment_. Will search ...
1
vote
1answer
66 views

Placing javascripts at the page's bottom and HTTP/2

Does the placement of javascripts at the bottom of html document still gives any loadtime wins, if the site runs on HTTP/2?
2
votes
1answer
234 views

Remote CDN: Pro's and Cons of grouping CSS and JS

I'd like to know the pros and cons of grouping external CSS and JavaScript files. The grouping method I'm referring to often seen by external libraries providers such as Google fonts and jsDelivr. ...
3
votes
4answers
2k views

How to hide h1 and h2 tags using JavaScript while still having them for SEO

My website does not currently use H1 and H2 tags, but I want to use them and hide them to make my site SEO friendly.
3
votes
1answer
83 views

Simulation of text-writing, what is the best way for SEO to allow the written text to be crawled?

For a client's website, I made a script that simulates typing and deleting of text. The client can enter the text himself, using [verwijder]-tags (which means 'Delete' in Dutch). See the demo at ...
4
votes
1answer
551 views

Bing + React: Inconsistent indexing

I have a page written in React.js, the whole content (including meta tags) is rendered using javascript. Google indexing works flawlessly for these pages, but Bing is inconsistent. Title some used ...
2
votes
2answers
745 views

Will Google respect changing the <meta> description with JavaScript?

I am building a single-page-application/SPA that uses JavaScript to control all the pages. Naturally, this means only one meta description embedded in HTML, even though there are many different pages ...
5
votes
1answer
3k views

How do I stop Google from indexing AJAX calls within Javascript?

We are getting a number of odd results come up on Google EG: http://www.somedomain.com/somepage/AjaxFunction.aspx?stuff=XXX&other=XXX When I looked at "somepage" the ajax function is not ...
0
votes
2answers
27k views

Include header and footer html files into another html file [ERROR]

I'd like to know how to include my header.html and footer.html in the rest of my html files, so if I had to change something in my header or footer, I would have to do it once and not by editing every ...
2
votes
1answer
3k views

Event tracking data not showing up in Google Analytics Real Time View

I haven't done a lot of event tracking before, but I had a good read of how to do it and have implemented it with Universal Analytics, and here is the code used to send to GA: function ...
4
votes
1answer
769 views

Server-side rendering for search engines only (SEO)

I have a heavily JavaScript based web app which I want to make it indexable. I know that google bot and others agents can already see JavaScript, but I don't trust they will capture my content ...
2
votes
0answers
868 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 ...
1
vote
1answer
31 views

The easiest way to include javascript code to wordpress site? [closed]

I built a website widget. If customers want to add it to their site, they need to put a small snippet of javascript code to head or any part of html, similar as you insert google analytics code. What ...
1
vote
0answers
664 views

Google PageSpeed says “Eliminate render-blocking JavaScript and CSS in above-the-fold content” [closed]

I own a WordPress site and I am trying to improve my PageSpeed Insights score. The only "Red" item I have says "Eliminate render-blocking JavaScript and CSS in above-the-fold content" Render ...
2
votes
0answers
31 views

Common header and footer in HTML, should I use JavaScript, PHP or other for SEO? [duplicate]

Firstly, I am aware this question is similar to others asked in the paste, however I'm specifically asking about the reliability of SEO in this question (also many of the other questions are outdated)....
0
votes
1answer
17 views

Javascript. Tree of hash char [closed]

I'm newbie in javascript. I'm trying to do a tree of hash ("#") in javascript. The output I would to have is something like: # ## ### #### ##### ###### ####### I know how increment the line with "...