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
1answer
30 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 ...
-1
votes
0answers
7 views

React.js column-reverse make the parent scroll [closed]

https://codesandbox.io/s/beautiful-microservice-z9flp?file=/src/App.js Reproduce steps: Click Add button five times Scroll the message box div to top and bottom again click Add button again. The ...
2
votes
1answer
14 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
33 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
21 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
139 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
43 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
18 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
20 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
9 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
23 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
9 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
161 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
20 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
21 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
72 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
18 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
24 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
27 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
70 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
251 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 ...
4
votes
1answer
148 views

Chrome bug: headless window not rendered (new tab in background) if outerWidth is referenced

[see updates at bottom] When I click on a to my website, it opens correctly in Google Chrome. When I command-click the link, opening a new tab in the background, the page seems to load (correct ...
1
vote
1answer
19 views

what does dynamic rendering actually mean?

Let me explain the situation. Google states that we can use dynamic rendering which just means to use Puppeteer, Rendertron or prerender.io. So, for google bots, we return fully rendered html and for ...
1
vote
1answer
31 views

Can I use scripts to block other script or block/rewrite HTTP requests?

I'm building a personal website using this premade Enterprise-class CMS because it has both the blogging and wiki/docs parts in one package, it's not as gorgeous as a Wordpress site can get but it's ...
0
votes
0answers
20 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 ...
1
vote
0answers
23 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 ...
3
votes
0answers
53 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 && &...
2
votes
1answer
31 views

Will web crawlers be able to crawl nested sidebar menu for mobile web

I have a simple question. One clicking on any of the breadcrumbs, an overlay appears as per design. For example, in the above image clicking on Physics will bring up all subjects to choose from and ...
1
vote
1answer
75 views

Schema JSON codes and their effect on the page speed rank

I searched in many articles but nobody has talked about this stuff. For example, google suggested JSON-LD for structured data but I wanna know if I add dozens line of JSON codes, does not it affect on ...
1
vote
0answers
18 views

Where to put anchor tags in Angular CSR Applications such that routes get indexed? [duplicate]

I built this site with Angular 10: https://fireflysemantics.com/ And when the top level domain is visited it reroutes to this: https://fireflysemantics.com/welcome However There's no link to that from ...
3
votes
0answers
23 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 ...
1
vote
0answers
358 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 ...
1
vote
0answers
29 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 ...
0
votes
0answers
13 views

Dynamically loading list of links with JavaScript (SEO)

An item belongs to a potentially infinite number of categories (usually most of them are spam). After the item page loads, it shows one category link with the highest score (and thus probably non-spam)...
0
votes
1answer
152 views

Google Analytics events not working

I'm trying to send an analytics event on a button click and it's not working. When I look in Analytics reports in Realtime > Events section, I can see one active user (the site isn't public yet, so ...
1
vote
0answers
68 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 ...
2
votes
0answers
46 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 ...
1
vote
1answer
409 views

DOMContentLoaded vs. 'load' event vs. “Finish”

I understand that the Difference between DOMContentLoaded and load events, has already been answered, and as such it explains the last two values (1.40s, 4.66s) from Developer Tools, but if the 'load' ...
1
vote
1answer
22 views

Question on search engine optimization for nodejs website

I just made my first website and I had some questions about how google would index it. For this website, content is only generated once the user interacts with a map seen on the website. I read this ...
0
votes
0answers
77 views

Is it SEO problematic to create footnotes with frontend JavaScript?

I have an RTL (Hebrew) MediaWiki 1.34.0 website in which I am having a serious problem creating footnotes for articles with the core Extension:Cite because its de facto lack of support in Hebrew, as ...
-1
votes
1answer
25 views

What is the difference of an `if` statement that has an {open-close} brackets, and without {open-close} brackets [closed]

if statement has an open {} close brackets if(example){ return example; }else{ return example; } if statement without open {} close brackets if(example) return example; ...
2
votes
1answer
76 views

How to disable .htaccess file using JavaScript?

By the way, the .htaccess was already enabled to my main directory. Is there any way to disable it using JavaScript? to my client-side? I was just curious about how my files are being secured. Thanks ...
3
votes
2answers
568 views

Do I need to add the Google Tag Manager if I already have Google Analytics?

I have google analytics in my website like this : <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-xxxxxxxx-1"></...
1
vote
2answers
84 views

Why adding facebook pixel code reduces the score on gtmetrix?

My score website on gtmetrix is A. When I add facebook pixel code, the scrore is B Look at this : How can I solve this problem? I want to add the Facebook pixel code on my website, but I don't want ...
0
votes
1answer
22 views

Facebook preview content appears to not be processing the javascript

When a Facebook user posts a link to the page a preview of the page is displayed. This tends to have the first image from the page. The page I have has one canned image at the top and the rest of the ...
0
votes
0answers
26 views

Should I use and iFrame or Javascript for the best SEO [duplicate]

I am currently doing some research as I'm wanting to build a sort of jobs board. Users can add jobs on my site, and then embed the list of jobs onto their site. From my research, I can tell there are ...
1
vote
0answers
89 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 ...
1
vote
1answer
21 views

Is there a CSS or JS solution to stop bad word wrapping arround images on mobile?

I have a blog post here which works fine on a larger screen but not so much on a smaller one. As you can see from the screenshot below the paragraph breaks very poorly around the image. Given how ...
1
vote
1answer
26 views

Will Googlbot and other crawlers see content inserted by JavaScript on the window load event?

Many robots, especially Googlebot, can read content written by JavaScript on sites. There are some methods developed especially for site speed. At the beginning of these, do some operations after the ...
1
vote
1answer
197 views

YouTube Subscribe button/link without redirect

I want to embed a youtube subscribe button in my webpage. But each time the subscribe button is clicked, it redirects the user to the YouTube app to subscribe. I want the user to stay in my website, ...

1
2 3 4 5
16