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.

80 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
436 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 ...
user avatar
  • 423
3 votes
0 answers
111 views

Using display: none VS a SPA approach, when it comes to SEO and performance

Say I have a component like, // first approach (SPA) const Component = () => { const [show, toggle] = React.useReducer(show => !show, false) return ( <div> {show && &...
user avatar
3 votes
0 answers
25 views

What might select a field and scroll to it, without using 'scroll', 'focus', etc?

I have inherited maintenance of a mess of a project. There's a particular set of (rather tall) pages that scroll way down the page on every page load, and eventually it occurred to me that it's ...
user avatar
  • 131
3 votes
0 answers
55 views

What is the name for a paginated scrolling effect with distinct stopping points in the scroll?

For example: http://deppo.tkdemos.com/portfolio/grid-references-in-the-latest-issue/ What is the name of the scrolling effect used on the link above? Where when you scroll or arrow down the page ...
user avatar
  • 31
2 votes
0 answers
19 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
2 votes
0 answers
350 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
29 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
2 votes
0 answers
130 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 ...
user avatar
2 votes
0 answers
729 views

Chrome Mobile: window.open starts up a Chrome PWA instead of opening a new browser tab

I have a PWA which, most of the time, I tend to use in-browser. In Firefox Mobile, I can click on a <button> to execute window.open which then opens a new tab in the browser, displaying custom ...
user avatar
2 votes
0 answers
53 views

Track visitors across different domains using Google Analytics even when they don't click between the sites

Apparently there are ways to track visitors across different domain using google analytics as described in documentation here and here. It follows the principle where a visitor click on a link on ...
user avatar
2 votes
0 answers
6k views

What is Script Evaluation?

"Reduce JavaScript Execution Time" is one of the generated issues Lighthouse can detect auditing any URL. Sometimes it's reporting a specific file is taking a lot of time in Script Evaluation phase. ...
user avatar
2 votes
0 answers
51 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 ...
user avatar
  • 21
2 votes
0 answers
102 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 ...
user avatar
2 votes
0 answers
12 views

How to include a link in email that opens an Android app if available, but opens the website if not?

In HTML code for an email is there a way to have a fallback URL when a primary URL cannot be handled? For example: Open app when using Android Open website when clicking on it on a desktop I know ...
user avatar
  • 121
2 votes
0 answers
345 views

How to setup custom dimensions in Google Analytics?

I have been working to track the user visiting my website with their userID. I am able to see the user by using user explorer in the GA View. But i want to fetch the data over the API to do achieve ...
user avatar
2 votes
0 answers
58 views

How to determine how much memory 1 million particles in WebGL is using

I would like to know how much memory is being used by a system of 1 million particles in WebGL: I am not really too sure on what to look for in the performance/memory panels in the Chrome devtools / ...
user avatar
  • 495
2 votes
0 answers
214 views

Does Googlebot cache JavaScript files between two pages if they expire in one year?

My question is about javascript websites. Suppose GoogleBot has crawled example.com/index.html?id=1 Does it request all the javascript files again when crawling example.com/index.html?id=2? index....
user avatar
  • 223
2 votes
0 answers
32 views

Validation error from htmlvalidator.com using wp_enqueue_script that text/javascript is obsolete

This code was being flagged on my Wordpress website: <script type='text/javascript' src='http://www.publictalksoftware.co.uk/wp-content/plugins/simple-download-monitor/js/sdm_g_recaptcha.js?ver=1'&...
user avatar
2 votes
0 answers
178 views

Crawling a SalesForce site fully generated by JS with Screaming Frog only gets content on some pages

I'm trying to crawl a Salesforce-generated site. This site appears to be fully generated by Javascript (if you load the page with JS disabled only a white screen shows up). For instance, Salesforce's ...
user avatar
  • 357
2 votes
0 answers
41 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 ...
user avatar
  • 21
2 votes
0 answers
1k 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 ...
user avatar
  • 121
2 votes
0 answers
881 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? ...
user avatar
  • 41
2 votes
0 answers
168 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 ...
user avatar
2 votes
0 answers
148 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>...
user avatar
2 votes
0 answers
2k 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 ...
user avatar
2 votes
0 answers
35 views

How to improve the Autosuggestion Google Maps

I have seen the following example of the Autosuggestion Google Maps feature https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?hl=en However, if I put a given ...
user avatar
  • 405
2 votes
0 answers
379 views

How to add Google App Script as a gadget to Google Calendar?

I created a small App Script with a small UI. Now I'd like to have it as a gadget in my Google Calendar. I tried to embed a gadget with the following basic XML: <Module> <ModulePrefs title="...
user avatar
  • 151
2 votes
1 answer
325 views

"wiki is currently unable to handle this request" after installing SimpleMathJax on MediaWiki

I need to show mathematical terms in mediawiki-1.26.2 so I tried to install SimpleMathJax on mediawiki. I followed the described in extension page: I downloaded SimpleMathJax-master.zip then extract, ...
user avatar
1 vote
0 answers
13 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
1 vote
0 answers
16 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
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
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
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 vote
0 answers
191 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 ...
user avatar
  • 2,377
1 vote
0 answers
151 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 ...
user avatar
  • 11
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 ...
user avatar
  • 254
1 vote
0 answers
83 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 ...
user avatar
  • 131
1 vote
0 answers
60 views

Is socket.io web site SEO friendly?

I know google bot load javascript and execute it. for example react app can be SEO friendly if I use react router and ... But does google bot execute websocket (socket.io) and get result and crawl ...
user avatar
  • 111
1 vote
0 answers
36 views

Showing more text with JavaScript - Google and SEO aspects

I have a page with several lists. Each list has "Read more" button or link. When clicking the "Read more", additional elements are added to the list (sometimes by just changing the ...
user avatar
  • 373
1 vote
0 answers
104 views

How do I configure WordPress so that it doesn't make calls to `wp-ajax` now that I'm no longer using a side cart plugin?

I was using WooCommerce side cart plugin on my website. I noticed that the plugin caused heavy process on my web site, so I decided to remove the plugin. I tested my website with gtmetrix. For the ...
user avatar
  • 61
1 vote
0 answers
145 views

SEO for react-native and react-native-web application, can it work?

I am looking at the generated HTML in my react-native-web web application and the volume of HTML is huge. The whole application is build with <div /> and there are some role attribute such as ...
user avatar
1 vote
0 answers
67 views

How can I enable compression of 3rd party scripts to get a better Gtmetrix score?

If I test my website on the Gtmetrix, there appear like this :
user avatar
1 vote
0 answers
29 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,...
user avatar
  • 11
1 vote
0 answers
183 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 ...
user avatar
  • 11
1 vote
0 answers
60 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/...
user avatar
  • 143
1 vote
0 answers
25 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 ...
user avatar
  • 111
1 vote
0 answers
22 views

Make JavaScript Generated content appear on Search Engines, where content differs on a Single Page

I have a PWA hosted on Firebase. On the main URL, like example.com, there's a lot of content that is generated by JavaScript. At the same time, whenever someone accesses example.com/?key=value, where ...
user avatar
1 vote
0 answers
43 views

generating part of html with javascript to increase the page loading speed

I've got picture gallery on my website that contains few hundreds of images. These are miniatures that are enlarged when have been clicked. The images are well optimized (they are compressed using one ...
user avatar
  • 11