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
1answer
27 views

Core Web Vitals - Field data difference Mobile vs Desktop

I am observing a strange problem related to Core Web Vitals, I have same website for both mobile and desktop(same server/same page/same DOM size) but I when I look into search console I get different ...
0
votes
0answers
20 views

Adult content on my website [closed]

Can some please help me I have a free seo tool that I have bought the script on codecanyon and I am trying to get approved on google AdSense. I get rejected for policy violations, Its the 4th time ...
2
votes
1answer
20 views

Can I create a custom 404 page with a parameter value?

I have a very basic website https://myappname.example with only a home page that allows users to go and download my app from Apple store or Google play. I have a use case when user can click on ...
4
votes
1answer
62 views

Core web vitals - LCP is being recounted on element outside viewport

I have been trying to control LCP on my website but unfortunately a strange phenomenon is continuously occurring, An element which is not in viewport is considered to be an LCP. Opposite to that ...
2
votes
2answers
133 views

Is it a no-no to have two sites with the same HTML and modify the content with JavaScript?

Let's say I have 2 sites /MergePDF?csharp and /MergePDF?java. They have the exact HTML, CSS and JavaScript. The only difference is the difference in content provided by the JavaScript. Is is it ...
1
vote
2answers
40 views

Does HTML Document style affect SEO?

Does a non-styled HTML Document affect SEO negatively? Which of these examples is better for SEO? Example 1 Example 2 Here is a lighthouse result for both examples Example 1 Example 2 As you can ...
2
votes
1answer
40 views

Should I statically generate an internal search result page rather than rely on JS rendering?

I have a Nuxt app which utilizes a headless CMS and static site generation to generate the landing page and all article pages at build time. On my landing page I'm displaying the latest articles which ...
2
votes
1answer
55 views

How JSON works in HTML Script Tag regarding SEO Search availability?

I know this topic already all over the forum. But still, I'm confused if there is no exact example of what they mean with dynamic render using Javascript. so here is the background of my question: I ...
3
votes
1answer
39 views

Google Bot seems to often fail at loading jQuery?

I am using Google Search Console's "Test Live URL" function to see if Google crawler can correctly read my pages. I find out that for a single page 3 out of 5 tests will return a lot of ...
1
vote
1answer
26 views

Using Google Analytics on a Javascript widget

I've built Javascript widgets that have been installed on other websites. How can I use google analytics on my widgets like I would use analytics on a web page to track the traffic? FYI, the ...
2
votes
1answer
21 views

Are there best practices to embed c3.js charts seo friendly?

We have a website with a large amount of inline svg charts made with c3.js. Is there a best practice how to embed them user- (links effects on hover etc.) and search engine (indexable in image search)-...
2
votes
0answers
24 views

Best way to ensure Google indexes a video iframe that is dynamically injected upon user interaction?

I work on a publishing site and sometimes we use Youtube videos instead of a hero image at the top of articles. When Core Web Vitals rolled out, we noticed that the YT video became the LCP element and ...
4
votes
2answers
125 views

Is email obfuscation with JavaScript still valid in 2021?

We built a website with all our team members and their email addresses displayed on our About page. Now the question arose if bots will be able get their email addresses and send spam using those. ...
0
votes
1answer
36 views

Do package managers like NPM and Yarn affect watchers and executions? [closed]

There are package managers like NPM and Yarn. They handle the package installations a bit different. When all the packages has been installed, does the package managers do anything more? When starting ...
4
votes
2answers
39 views

Does inserting meta elements into the <head/> using JS effect SEO?

I am developing a static HTML/CSS website I have multiple meta tags I add to the head on each page. As it stands currently whenever I want to change the meta information I need to manually update each ...
3
votes
1answer
34 views

Does google index content that's inserted using setTimeout after the page is loaded?

Let's say we have this code <body> content-1 </body> <script> setTimeout(changeBodyContentTo("content-2"), 5000); </script> In this case will google crawl and ...
3
votes
2answers
68 views

Display SEO-friendly musical chords above text in HTML

I'm currently rendering guitar chords above lyrics on my website like this: span.chunk { position:relative; top: 15px; display: inline-flex; flex-direction: column; vertical-...
1
vote
0answers
31 views

JS-Script to obfuscate email adresses on website [closed]

Hello everyone i am looking for a solution to obfuscate email adresses to save from spam-bots. I would really appreciate any help. Its for a page built on HubSpot.
5
votes
2answers
247 views

Does using onclick to redirect parameters impact SEO?

For SEO, I need to have my link https://www.example.com/ on a third party website. However, I also need this website to pass parameters to my site. If the third party website used the below structure ...
1
vote
0answers
20 views

Import a local JSON file in your pc to your basic HTML page and display it's content using Chart.js API [closed]

Import a local JSON file in your pc to your basic HTML page and display it's content using Chart.js API.
3
votes
1answer
71 views

Is it bad for SEO to load images with javascript?

I try this to load images when they are on screen: JS: var elementvector3 = document.querySelector('#vector3'); var positionvector3 = elementvector3.getBoundingClientRect(); if (positionvector3.top &...
1
vote
3answers
43 views

Is SEO affected by CSS or JS that hides content after a few seconds after the page loads?

I was instructed to implement a "filter" in some pages on a corporate website, the filter hides the page content and ask for a valid email to continue reading. Sort of an opt-in but forced, ...
0
votes
0answers
18 views

Google Search result with changing URL with JS pushState?

I have a WordPress blog on a specific site, lets say example.com/blog. It is installed in a subfolder /blog on my server. The main site example.com is hosted elsewhere (where I have no access) and ...
0
votes
1answer
215 views

Nextjs Sitemap not fetch by Google search console

I created a small web application with Next.js and it works fine. Now I need to index that on google. It has dynamic pages too. So I created a dynamic sitemap using Sitemap npm module. But when I ...
0
votes
0answers
30 views

Google Analytics - Custom Dimension values are incorrect in GA

I have couple of Custom Dimensions in my Google Analytics account set up - cd1 and cd6 (dimension1, dimension6). Through code I pass the values for these dimensions, the diemnsion1 is userId and ...
2
votes
1answer
48 views

Google showing static title instead of dynamically set javascript title

Let's say I have set my title using HTML to "Something - Example" and with Javascript I change the title to "Apple - Example". When I google my website (after waiting for it to ...
2
votes
1answer
102 views

Does Googlebot crawl JS or JSON inside an HTML page?

My Google Search tool is complaining about certain URLs it found on my site. These are intentionally unusable URLs; I'm not using them in any links. Think of them as unused meta-data. A) In one ...
1
vote
0answers
51 views

Page Speed Insight suggests that I remove unused JavaScript, but those scripts are needed for the pages to work

I deferred all my scripts in this way <script defer src="https://mywebsite/javascript/jquery-3.1.1.min.js" > but Page Speed Insights wants me to remove them. I cannot remove them. The ...
1
vote
1answer
25 views

Can JavaScript data within HTML also be crawled?

I'm curious about Amazon's website, it doesn't have HTML and instead most of it is in JavaScript: I have a Nuxt SSR app, and the window.__NUXT__ script is very huge and my fetched data is also in ...
1
vote
1answer
30 views

Schema data for Google & Bing bots crawling partial hydrated pages

We are using static html, combined with partial page hydration via javascript. Visitors download a full html page when they first arrive at the website, from there javascript intercepts any internal ...
4
votes
3answers
92 views

How to deal with minification

Sorry for such a noob question, I just started learning web development. But I am confuse on how do you handle minification on JS and CSS. For example you minify your JS, CSS files for release but ...
2
votes
1answer
29 views

How do I send a file_download event to google analytics?

Google Analytics considers a file download a link to one of their supported file types. But my single page app generates files on the fly and then generates a hyperlink with base64 data and prompts ...
2
votes
1answer
50 views

Adding both Google Analytics code and Google Ads conversion tracking code to the same page

I am managing a very simple single page site, and my client wants to start a Google Ads campaign for it. I had added some days ago the Google Analytics tracking code to the page: <!-- Global site ...
1
vote
0answers
87 views

Is there a way to force a variant in Google Optimize?

Here Google explains how to get the Google Optimize variant and change your page accordingly using gtag. What I need to do is to be able to set the variant number for a specific experiment with ...
3
votes
2answers
255 views

Can Cloudflare workers be used for heavy traffic?

I tried to find the details about traffic limit on Cloudflare workers, the only limit I found is by the number of requests. Can I use it to provide extremely heavy traffic 10, 20, 30, 50, 100, or 1000 ...
2
votes
1answer
58 views

Can I use Google Analytics on URL shortener redirects powered by PHP?

I have a short URL website like Bitly which currently redirect users with PHP from my site to a site of their choice. I want to add Google Analytics to the redirect pages but I am stuck on the problem ...
1
vote
0answers
94 views

Google Tag Manager trigger for content in shadow-root?

How do I create a UA trigger that fires when a user clicks on content in a #shadow-root inserted using JavaScript? HTML is as follows, where the site I am working on is "site_A" and the site ...
2
votes
0answers
29 views

Will adding parameters to URLs with JavaScript to pass information to Google Analytics affect SEO?

I have written some simple js/php that adds WordPress taxonomies and categories of posts to the urls of blog posts so that we can search in google analytics which posts with matching taxonomies are ...
1
vote
0answers
11 views

Safari causing checkbox to change height and not be selected

Having an issue with Safari rendering a checkbox oddly. On https://www.iq-mag.net/subscribe/ if you select a subscription and choose "Subscribe Now" the subsequent page has the issue (don't ...
2
votes
0answers
96 views

Google Search Console reports "Not all page resources could be loaded" when using embedded Youtube videos

I have a blog but I got a message from Google Console: Page partially loaded Not all page resources could be loaded. This can affect how Google sees and understands your page. Fix availability ...
0
votes
0answers
35 views

How do I go about updating my code to monitor only my production server?

Please note that I am not a Pro Webmaster but I am not sure the best place to ask for advice. I use a software application called HelpNDoc to build HTML help documentation. Recently I added support ...
1
vote
1answer
1k views

AdSense: "adsbygoogle.push() error: No slot size for availableWidth=0"

I'm trying to build a webpage which shows responsive AdSense mobile ad slots when mobile visitors and desktop ad slots when desktop visitors. This is my HTML code: <html><head> <script ...
0
votes
0answers
54 views

React-Helmet - Does it act good for SEO without any client side rendering?

I've been wondering and searching for how to improve SEO in React Application, like each pages title, metadata, which google bot will be able to crawl. I found React-Helmet. I used it, works fine. But ...
0
votes
0answers
31 views

Can this code using 'display:none' hurt my SEO? [duplicate]

I'm trying to solve a problem with a content that I'm putting in a page with an iframe, the problem is: I want the SEO of that iframe but in the principal page, I wrote a collapse with JavaScript but ...
-1
votes
1answer
83 views

Most website visitors don't have Java enabled

So, for the first time ever, I had a look at the "Java Support" dimension in Google Analytics. According to that, most of our visitors don't seem to have Java enabled (115,844 vs. 7,540 page ...
1
vote
1answer
19 views

Site B filling out form from Site A and Site A processes form submittal [closed]

I have a need for website B to grab a form from website A and post the form data to a process on website A. Site A is the 'keeper of data submitted', and site B is an approved client of A that is ...
1
vote
0answers
46 views

Problem with iframe cloaking, How can I add all my website files into a domain name itself?

I have come to the point where a “simple” way of building websites is just not able to facilitate larger projects. I have been using repl.it to simply host and read files I have coded in HTML, CSS, JS ...
0
votes
0answers
55 views

SEO Content Length issue: Split html source into multiple files

I am quite novice to SEO and I own a website called pierre-alexandre.io. Since it's a single page with a lot of HTML, I decided to split the html source into 3 different files. So my index.html looks ...
2
votes
1answer
295 views

Accessibility and SEO implications of Fade-in-on-scroll libraries

We want to add some visual appeal to some of our content via scroll animations; IE have the content fade or slide in as the user scrolls down the page. The primary Library we're looking at using for ...
3
votes
0answers
402 views

PageSpeed Insights warns me about my AMP pages: "Remove duplicate modules in JavaScript bundles"

I've checked the score of my AMP pages with Google PageSpeed Insight, and I received this message in red: "Remove duplicate modules in JavaScript bundles" This is the initial piece of code ...

1
2 3 4 5
16