We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
0answers
12 views

Websites with js are not working [on hold]

We have strange issue on our company network. Seems that javascript is not working, all sites where javascript is cannot be load, still loading. When I connect to VPN to our network from home, all is ...
1
vote
0answers
17 views

Months after implementing JS redirects, hash bang URLs are still indexed in Google beside their replacements

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/...
2
votes
2answers
3k views

What could be causing this long waiting time on page load?

What could be causing a 1.18s wait time when my page loads? Just to make sure I did not have any conflicting or parallel scripts loading, I completely deleted all the script on my home page and ran ...
-1
votes
0answers
10 views

How to create Constant Glow Effect Icon? [closed]

how to create such glowing effect in a icon through code???
2
votes
1answer
214 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
0answers
23 views

Is there a way to use js templating with wordpress without impacting seo or ux?

I have one JSON file that contains the text content for my hundreds of Wordpress posts. I am using templating, mustache.js, to insert the text content and render the posts. This saves me a lot of time,...
2
votes
1answer
32 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 ...
1
vote
1answer
48 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
24 views

Norton Alert on Java script : Web Attack: Fake Tech Support Website 374

I used JavaScript function to get browser information.I added this code : isIEedge = window.navigator.userAgent.indexOf("Edge") > -1; It has trouble with Norton Anti-virus, I am interested to ...
7
votes
1answer
840 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)...
78
votes
2answers
538k views

How do I open the JavaScript console in different browsers?

Web browsers provide a JavaScript console as part of their developer tools. This console is useful for the following reasons: Errors and warnings that occur on a web page are logged into the console. ...
2
votes
0answers
10 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 ...
1
vote
1answer
42 views

How can I optimize Google Analytics for GTmetrix?

I'm optimizing my website using GTmetrix and I've got good grades, but it's still not perfect. Look at this image for PageSpeed: And this one for YSlow: The picture shows that my value is not ...
1
vote
3answers
1k 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 ...
2
votes
3answers
998 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 ...
1
vote
1answer
46 views

How can I track button click in google analitycs?

I had register my website in the google analytics and I had put the script in my default index like this : <html> <head> <meta name="google-site-verification" content="**********...
1
vote
2answers
52 views

Can it save the google tag manager script in an external js file?

My default index html like this : <html> <head> <meta name="google-site-verification" content="****************" /> <script async src="https://www.googletagmanager.com/...
0
votes
3answers
50 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 ...
1
vote
1answer
21 views

Delete Firefox JavaScript console history?

How do I the clear the command history of Firefox's JavaScript console? Clearing all history, cookies, cache, etc., doesn't clear the JavaScript console history.
3
votes
1answer
45 views

Standard or common way to secure a destination-email-address of a client-side contact-form

I have a website with a minimal, client-side HTML-CSS-JavaScript contact form but I desire to hide the destination email address of that form from the HTML source code so that form users would not be ...
1
vote
3answers
63 views

What are the benefits of utilizing a Web Server vs opening an HTML file directly via your browser

I've just begun coding in Javascript. I'm looking for an in depth answer that explains the features that are available to me when using a web server to serve up my index.html file vs simply opening ...
1
vote
0answers
38 views

How can I improve performance score website in the gtmetrix? [closed]

I test my web with gtmetrix. The result like this : I want to improve grade of add expires headers, compress component with gzip and all recommendation which has a bad grade How can I do it? ...
2
votes
1answer
66 views

How can I combining many external Javascript scripts into one?

I check my website using gtmetrix and my website is recommended for fewer HTTP requests and reduce DNS lookups. So I must to combining combining many external Javascript scripts into one In my layout ...
2
votes
0answers
82 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 ...
3
votes
2answers
126 views

Can Google crawl dynamic structured data added in a window.onload() event?

I inject some JSON-LD into a page dynamically via Javascript, when I test the page using Google's Structured Data Testing Tool, the expected output appears and I can see the Product Element is ...
0
votes
2answers
207 views

Is “overflow hidden + javascript scrolling control” affect SEO

I have an html page with a css overflow:hidden affected to body My <content> is at top:100% positioned in absolute. When I scroll, a javascript code change the <content> top position to ...
1
vote
1answer
79 views

MediaWiki: Hiding certain HTML elements for non-logged-in users

In a MediaWiki-based non-communal website there are some HTML elements that should be presented only for logged-in-users (an administration menu or some of its links). Usually if I want to hide ...
1
vote
2answers
853 views

Embed Facebook Page Plugin

I've been following facebook instructions in order to embed their "page plugin" in my website, and failing. (See instructions here.) Would you please take a look at my code and help me out? thanks in ...
3
votes
1answer
50 views

Do search engines crawl JavaScript generated pages?

I'm considering building a new website using react.js and am doing quite a bit of research before embarking into anything. I have found quite a few articles stating that websites that have content ...
4
votes
2answers
99 views

Adsense ads don't appear even if account approved

I have a website that runs on Apache 2 and has code in PHP and JS + HTML. This is the code of my ad unit: I have an approved AdSense account that already was showing (and getting revenue) from AdMob ...
0
votes
2answers
46 views

Does Javascript Obfuscating effect SEO?

Does protecting Javascript source code using an obfuscator (so it will be harder to read it by visitors) can hurt Google Ranking?
1
vote
1answer
37 views

What is the difference between Google Analytics experiment and gtag snippets? Do I need both?

I have a website with two Analytic codes: <!-- Google Analytics Content Experiment code --> <script>function utmx_section(){}function utmx(){}(function(){var k='1234567-0',d=document,l=d....
6
votes
4answers
6k views

Protect js code from being stolen

I have developed an web app with jquery,html-css markup which would be an premium web app. So I have to ensure the security of the code from being stolen.But as all these are client side,so there is ...
1
vote
0answers
14 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
1answer
39 views

Getting this in Google SDTT Tool: “The URL could not be rendered. Some markup may be missing.”

Structured Data Testing Tool giving error in testing via fetch url but working fine when pasting the code. I have some JS code which fetches some content and dynamically inject in the HTML. So I am ...
6
votes
1answer
2k views

Structured Data Tool doesn't see JavaScript rendered content

Some structured data (namely price) of my page is rendered by JavaScript. According to fetching results in Webmaster tools Googlebot sees and renders it perfectly. However the structured data tool ...
0
votes
3answers
2k views

How to trace origin of script injected in my webpage

I was looking through a static site I created on my local server, in my web browser, and found a curious call to an external script <script src="https://engowe.com/ad.php?u=...
0
votes
0answers
27 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. ...
1
vote
1answer
40 views

Pagination without pagination URLs - is it bad for SEO?

I've read a few articles about pagination pitfalls but none really describe my situation. I have a products page rendered with ReactJS with about 300 products and pagination (I am also using server-...
0
votes
1answer
39 views

Adding a contact form to MediaWiki

There are a few contact form extensions for MediaWiki that one can download and install but I don't want to use extensions at all (or changing the PHP) if there is another solution in HTML-Javascript. ...
1
vote
3answers
658 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 ...
1
vote
1answer
36 views

Could it be correct to have two Google Analytics UA codes in my site?

OK, I started out on a new job and working on SEO. I saw that it has two UA codes. Since I am a newbie on this, I wanted to know if the use of these codes are correct? Just wanted to know if there is ...
0
votes
0answers
17 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 ...
2
votes
1answer
64 views

Ajax Request with Push State to Current URL SEO Friendly?

After reading up on getting content indexed in Google that is pulled into a page from an AJAX request, I have found that you can use pushState to change the URL and this will allow Google to find it. ...
1
vote
2answers
37 views

Does Javascript need to be supported by the server hosting the script?

So, if you want to run a PHP script for example, whatever is hosting you needs to be able to run PHP. Does this also apply to Javascript? As in, if I want to include Javascript on my webpages, do I ...
3
votes
1answer
30 views

Not receiving any data from Google Analytics

I setup a GA property: <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-XXXXXXXXX-2', { ‘anonymize_ip’:...
4
votes
2answers
2k views

Embedding a Disqus forum on my website: showing scrollable area instead of expanding the height

I hope I put this question as it should, I am not an expert in html/css/javascript, so forgive me if it's not very clear. The issue is as follows. I made my first website last week for the birth of ...
1
vote
1answer
28 views

Is search engine cloaking caused by JavaScript changing the document object model?

This current article from Wikipedia defines Cloaking as: Cloaking is a search engine optimization (SEO) technique in which the content presented to the search engine spider is different from that ...
0
votes
2answers
37 views

How can I get a web crawler to see dynamic data injected by JavaScript in 2019?

Originally posted this on stackoverflow and it got put as off-topic so posting here. I recently read this google webmasters article from 2015 on accessibility and SEO for web pages using AJAX. It ...
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 ...