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

How to download part of JavaScript code [closed]

I am looking at this website with a public table with some information I am interested in. I can download the info saving the page through Firefox, but it will take too much time to save all tables (I ...
0 votes
0 answers
8 views

jquery error with cookie consent banner [closed]

We implemented a cookie consent solution for GDPR. It creates an important error, blocking site's accordions, if user does not give the consent to all cookies. With inspector we could find an error in ...
2 votes
1 answer
27 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</...
1 vote
1 answer
26 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 ...
1 vote
0 answers
16 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/...
8 votes
2 answers
19k views

Tracking logged in vs. non-logged in users on the same URL in Google Analytics

I am building a social media site that is similar is structure to twitter and facebook.com where unauthenticated users who go to https://example.com will see a login + sign-up page, and authenticated ...
3 votes
1 answer
116 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 ...
0 votes
0 answers
21 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 ...
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 ...
2 votes
1 answer
44 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
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
5 votes
2 answers
2k views

Google follows JavaScript string as relative path - produces 404 error

This is my first question on here so I hope I'm not breaking any rules, but I have a problem: I have a site that uses an Adobe Site Catalyst for its online analytics. The suite supports tagging ...
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)-...
1 vote
0 answers
20 views

Safari causing checkbox to change height and not be selected

Having an issue with Safari rendering a checkbox oddly. On my site if you select a subscription and choose "Subscribe Now" the subsequent page has the issue (don't worry, you don't need to ...
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 ...
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 ...
1 vote
0 answers
17 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 ...
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 ...
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: "...
2 votes
0 answers
405 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 ...
4 votes
4 answers
3k views

Is changing HTML with JavaScript bad for SEO?

Building web apps I don't have to worry so much about SEO for back end things so dynamically changing the HTML isn't an issue. I am using backbone.js with a front end site I'm building and the site ...
1 vote
0 answers
40 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 ...
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)&...
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 ...
1 vote
1 answer
63 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 ...
2 votes
1 answer
54 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 ...
13 votes
4 answers
5k views

Pagespeed Insights reports that Google Analytics is blocking main thread in page load

I'm chasing page speed, partly as proof that getting 90%+ is consistently achievable. My main issue now is Google Analytics. In the below example, it's loaded via Google Tag Manager, so there's just ...
9 votes
4 answers
10k views

Protect Javascript code from being stolen

I developed a web app with jQuery, HTML, and CSS markup which would be a premium web app. So I have to ensure the security of the code from being stolen. But, as all these are client side, there is no ...
3 votes
1 answer
95 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 ...
2 votes
1 answer
94 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 ...
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 ...
4 votes
3 answers
59 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 ...
4 votes
2 answers
75 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 ...
2 votes
1 answer
45 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 ...
1 vote
2 answers
863 views

Has anyone been able to convert a site's media content from flash to html5? [closed]

I'm looking to convert a site from Flash based video to HTML5, the current video uses time marks to display slides (kind of like how youtube has ads on their videos). But the difference between ...
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 ...
1 vote
1 answer
70 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 ...
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 ...
2 votes
2 answers
135 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 ...
3 votes
2 answers
1k views

Does e.preventDefault on link prevent the page from being crawled?

I have a couple of links in navigation on homepage that lead to new pages. When clicked on link, i want to prevent going on that page (e.preventDefault()), and instead load that page in popup with ...
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 ...
12 votes
5 answers
18k views

Why would you use document.location.protocol instead of plain // prefixed urls?

For instance Google Analytics uses document.location.protocol in the boilerplate for tracking: <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']...
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 ...
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 ...
1 vote
1 answer
66 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 ...
1 vote
1 answer
69 views

Routing in the most SEO friendly way with Angular?

Currently I have an Angular app that routes to a to the "Home` location when the user clicks the logo like this: home() { this.router.navigate(['']) } Is there a more SEO friendly / best ...
34 votes
5 answers
75k views

Chrome refused to execute this JavaScript file

In the head of my HTML page, I have: <script src="https://raw.github.com/cloudhead/less.js/master/dist/less-1.3.3.js"></script> When I load the page in my browser (Google Chrome v 27.0....
4 votes
2 answers
88 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 ...
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 ...
4 votes
2 answers
262 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. ...

1
2 3 4 5
16