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

About the html template tag and SEO

Hey I have question about the html tag. Let's say I have this page and I don't know the page length like this. <template>Some Html</template> <template>Some Html2</...
user avatar
1 vote
1 answer
18 views

Is it OK for SEO to make content available via AJAX when users click, but also to load that content on its own URL?

I'm working on a website and I want to use AJAX for some content, but I'm worried about search engines crawling my site, and I know Google and other search engines only see contents that are currently ...
user avatar
  • 11
1 vote
0 answers
14 views

How to view my promoted tweets in the Twitter app to debug JavaScript?

I'm driving traffic to a website with PPC on Twitter. AWS CloudWatch is reporting that 80% of my visitors are experiencing JavaScript errors — but 100% of those errors are happening in the on-device/...
user avatar
3 votes
1 answer
108 views

How to improve page speed of a site built with Prismic

It looks like all the sites who use Prismic get a terrible score at Page Speed Insights. Questions: Is Prismic really slowing down all the sites that use their CMS? List of sites using Prismic Score ...
user avatar
  • 31
0 votes
0 answers
20 views

How do I improve the client-rendered content for SEO?

I have a website with many links on it. Some of the links are user generated. For instance: example.com/?some_information example.com/?some_other_information The page will utilize the parameter to ...
user avatar
0 votes
0 answers
6 views

HTML/CSS/JS - Issues creating two vertical sections [migrated]

I'm trying to create two vertical sections for a web page I'm making (using netlify connected to my github repo) and I cannot seem to set up two vertical sections. I'd ideally like for the left-most ...
user avatar
1 vote
0 answers
17 views

When using Matomo (Web Analytics) is there any way to correlate the logged in user to particular events?

I'm evaluating Matomo v4. I can see in the database tables (and admin reports) that users are tracked in the visitors log. However, it looks like any events you track are not tied to any particular ...
user avatar
1 vote
0 answers
20 views

Do Dynamically-Generated Custom Tags Harm SEO?

In my JavaScript file, I create a "fake" tag (Like this): <fake-tag> <another-fake-tag></another-fake-tag> <self_closing-fake_tag /> </fake-tag> These ...
user avatar
2 votes
0 answers
20 views

Start hosting with firebase

I made a new firebase project and web app, and i want to use firebase hosting on it. I have a directory set up on replit with html, js, css, but how do i host it on firebase? I have tried looking at ...
user avatar
1 vote
0 answers
16 views

Exposing content from client-side headless CMS API to web crawlers

This is something I've been struggling to wrap my head around for the past few days. Tried to keep the rambling to a minimum but concise questions are at the bottom. As I understand it, utilizing JS ...
user avatar
1 vote
0 answers
20 views

How to plot .tif file colour coding onto the map using javascript? [closed]

I want to plot colour coding from .tif file into the map with the help of react-leaflet. How can this be done? I am open for other better suggestions. My core goal is to display color coding given in ...
user avatar
0 votes
1 answer
23 views

Refused to execute inline script with Comodo Trust Seal

I'm trying to add the Comodo Trust Seal on my site but it gives this error in chrome: Refused to execute inline script because it violates the following Content Security Policy directive: "...
user avatar
2 votes
0 answers
360 views

SEO | VueJS | Why do I see "We're sorry but desk-app doesn't work properly without JavaScript enabled. Please enable it to continue." in web browser?

I set up a single page application using Vue.js and Firebase. It works fine but when I search for the website in Google Chrome, this is what pops up : I expect to see a proper description, instead of ...
user avatar
  • 21
2 votes
1 answer
40 views

How Does Google Analytics Calculate Browser Size?

How does Google Analytics calculate the Browser Size metric that it reports for user sessions? Another thing that would be helpful would be a way to modify a browser to replicate the "(not set)&...
user avatar
0 votes
0 answers
23 views

uBlock Origin blocking ads.js on Firefox but not on Chromium

I am trying to display a simple soft message to tell users to donate when they are using an adblocker. I do this with a script at example.com/ads.js, simply my method is that if ads.js is blocked then ...
user avatar
  • 121
1 vote
1 answer
61 views

Does onclick animation affect SEO?

We want to build the website with mind-blowing animations, but SEO is also important for us and I am wondering about the SEO effects in the case of CSS and JS animations. Let's say we want to build ...
user avatar
2 votes
1 answer
53 views

Google Analytics reporting all traffic as organic

My website is built using Angular. The frontend pages are built using Angular SSR (server-side rendering). My checkout pages are using Angular, but not SSR. The issue is that once a user lands on an ...
user avatar
  • 139
2 votes
1 answer
93 views

Why are two completely different pages considered Duplicate without user-selected canonical?

I am working for an online casino, and the blog page is deemed Duplicate without user-selected canonical to the main casino page? The two pages are completely different and have nothing to do with ...
user avatar
3 votes
1 answer
91 views

Is Largest Contentful Paint (LCP) measured only above the fold?

A lot of sources mention that LCP is measured only above the fold, and stops measurements after a user action like scroll or key press. Though, I am able to get LCP for an image which is lazy-loaded ...
user avatar
1 vote
0 answers
37 views

SEO test tool doesn't see my H1 generated by JavaScript, will Google?

On what basis is SEO checked? When I examine my page, an H1 tag is present. However, when I look at the page source, an H1 heading is not present because it is generated via JavaScript (CMS in the ...
user avatar
  • 11
4 votes
1 answer
60 views

Is it black hat SEO to add content (self hosted ad images) after window onload

There are about 12-15 Ads:Images(mostly GIFs, self hosted on same server and domain) and appear on all the pages. Since the file size of GIFs are relatively larger(some upto 2 MB), they have started ...
user avatar
4 votes
3 answers
57 views

Does Googlebot call every link separately (with a new request)?

Does Googlebot call every link separately (with a new request) or does it follow all links by JavaScript (for example by click event)? I have a vue-js website which contains all the links and of ...
user avatar
2 votes
1 answer
43 views

Is it possible to disable indexing through JS?

Is it possible to disable Google indexing of some web page if this is placed to head tag <meta name="googlebot" content="noindex" /> using only JS? Or is it all a hoax and ...
user avatar
1 vote
1 answer
64 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 ...
user avatar
2 votes
1 answer
38 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 ...
user avatar
4 votes
1 answer
124 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 ...
user avatar
2 votes
2 answers
134 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 ...
user avatar
1 vote
2 answers
52 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 ...
user avatar
  • 113
2 votes
1 answer
42 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 ...
user avatar
  • 123
2 votes
1 answer
81 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 ...
user avatar
4 votes
2 answers
74 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 ...
user avatar
  • 485
1 vote
1 answer
65 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 ...
user avatar
2 votes
1 answer
30 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)-...
user avatar
  • 21
2 votes
0 answers
41 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 ...
user avatar
  • 171
4 votes
2 answers
258 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. ...
user avatar
  • 289
0 votes
1 answer
37 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 ...
user avatar
4 votes
2 answers
86 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 ...
user avatar
  • 143
3 votes
1 answer
51 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 ...
user avatar
  • 33
3 votes
2 answers
101 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-...
user avatar
1 vote
0 answers
40 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.
user avatar
  • 289
5 votes
2 answers
318 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 ...
user avatar
1 vote
0 answers
30 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.
user avatar
3 votes
1 answer
79 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 &...
user avatar
1 vote
3 answers
51 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, ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
1 vote
1 answer
388 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 ...
user avatar
0 votes
0 answers
33 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 ...
user avatar
  • 25
2 votes
1 answer
53 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 ...
user avatar
2 votes
1 answer
338 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 ...
user avatar
1 vote
0 answers
67 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 ...
user avatar

1
2 3 4 5
16