Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
18 votes
Accepted

Local files vs. CDN

The CDN should be used for all static files (.css/.js/images). Sometimes however javascript or css files can have dynamic aspect to them such as that it would include a unique user string or ...
Analog's user avatar
  • 2,375
11 votes
Accepted

10 megabyte gzip limit in AWS Cloudfront?

This is a design limitation: The file size must be between 1,000 and 10,000,000 bytes. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html ...
Michael - sqlbot's user avatar
5 votes

Labelling website as optimized

I don't think the modern search engines care about "older" phone compatibility. If the site is mobile-friendly in modern terms, the spiders will detect that and search engines that report it, will. ...
JCL1178's user avatar
  • 5,592
5 votes

Local files vs. CDN

Using a CDN vs traditional web hosting for delivering your static files such as CSS, JS, and images is commonly preferred. This is because once your files are cached on the CDN's edge servers, your ...
CodyA's user avatar
  • 206
5 votes
Accepted

Why does PageSpeed Insights ask me to use next generation images when I am using Cloudflare Polish?

The answer lies in the fact that Google uses a different image file converter than Cloudflare does. Cloudflare Polish will not convert any image which it decides will be larger after the conversion. ...
Guy's user avatar
  • 211
4 votes

Local files vs. CDN

Use a CDN if you need a CDN. If your user is global and spread over a large area, or you have a lot of such content that you don't want to store on your own server, that is when a CDN is useful. ...
Rob's user avatar
  • 4,623
4 votes

Local files vs. CDN

Hosting on a CDN has many disadvantages: Privacy. Everytime you go to a site that hosts scripts/stylesheets/fonts on a CDN, the CDN knows about you visiting the site. Offline time. In the last weeks ...
cari's user avatar
  • 149
4 votes

SEO-friendly way to pass multiple values in a URL parameter

You shouldn't try to make faceted navigation SEO friendly. No matter how you do it, it isn't going to be. Faceted navigation is for users once they get to your site, not for getting your content ...
Stephen Ostermiller's user avatar
3 votes

Is there a way to track internet connection speeds with Google Analytics?

It is kind of possible. Allow me to explain: It is possible to attempt to measure visitor bandwidth using Javascript, but the results won't be reliably accurate. Additionally, this would also make ...
Josh's user avatar
  • 312
3 votes

Whats a typical exit rate?

I think you might be thinking of Bounce Rate rather than Exit Rate. Bounce Rate, which has specific industry benchmarks, is where a user lands on a page and exits the website without going to any ...
Henry Visotski's user avatar
3 votes
Accepted

How much recyling CSS makes my website faster?

The only part of that, where the browser would work harder, is having to parse the extra few characters for each selector. Insignificantly so because the majority of the work is done on creating a CSS ...
Rob's user avatar
  • 4,623
3 votes
Accepted

Is there any point to compressing HTML when using GZIP?

Your files will be smaller if you minify them before using gzip. Gzip isn't perfect compression. It doesn't remove remove all the redundancy that minifying does. Gzip is lossless compression. ...
Stephen Ostermiller's user avatar
3 votes

Does it ever make sense to use Javascript for highly repetitive HTML?

Yes, it often makes sense to construct the DOM with JavaScript on the frontend rather than serving it directly as HTML. For example it is common for a server API to send data as JSON which is then ...
sfmiller940's user avatar
3 votes
Accepted

Why does Google, in it's Page Insights tool, advise to use WebP images which don't work in all browsers?

Since WebP is an efficient file format, and Google serves up a lot of images to users, Google has a vested interest in getting WebP supported by all major browsers so that they no longer have to serve ...
Maximillian Laumeister's user avatar
3 votes

Does content below the fold affect CLS (cumulative layout shift) score?

The lighthouse CLS score is calculated based on the current viewport it is being tested in. For example, if you test your site on a 1366px monitor and then on a 1920px monitor, the scores may be ...
Richard's user avatar
  • 164
3 votes

How to work with image sizes for different resolutions for a website?

srcset The srcset and sizes attributes on img (or source) elements allow authors to define various image resources and "hints" that assist a user agent to determine the most appropriate ...
Mike Ciffone's user avatar
  • 6,390
2 votes

Image Optimization : Can i use same image for thumbnail(180*110) and small thubmail (80*55) in web

SEO: Using the same file and css to reduce the resolution will not impact your SEO. SPEED: Using the same file will reduce the server-side requests which will speed up your server and save bandwidth ...
Simon Hayter's user avatar
2 votes

Optimisation test services allude to 'inline script block #5', what does this mean

As noted in Seb's comment immediately under the question, this indicates there is a script or asset request blocking your page being rendered. More than likely, it is a javascript or css call for a ...
Anson W Han's user avatar
2 votes
Accepted

How to decrease HTTPs redirect wait time?

How can I reduce the redirect time? I use a wordpress plugin to redirect my website to HTTPs... Wordpress is generally driven by the PHP scripting language. PHP is 3rd party software that is called ...
Mike -- No longer here's user avatar
2 votes

Sitewide A/B or Sanity Test

The only way to do A/B testing without affecting SEO traffic is redirecting users and search bots to a different temporary URL that have the changes on. On these test URLs you would have a canonical ...
Max's user avatar
  • 6,127
2 votes

Is there any reason I don't see many people use media attribute inside link tag?

This technique isn't pointless at all, it can be used to optimize the Critical Rendering Path, which will reduce the time to first render and also help your website pass the Lighthouse test. Both ...
Marcio Duarte's user avatar
2 votes
Accepted

How can I combining many external Javascript scripts into one?

You create a single file with all the CSS. You create a single file containing the contents of all the JavaScript. You remove the links to all the css and JS from your pages and replace it with: &...
Stephen Ostermiller's user avatar
2 votes

How can I optimize Google Analytics for GTmetrix?

It's a real pain that Google reccomends this on their own products. I have looked into doing this before and I have found a couple of solutions but nothing is perfect and i've found that having a 100/...
Michael Scott's user avatar
2 votes

SEO | Cloaking | Is it safe to remove Third-party / Analytical scripts for crawlers/bots? Is this considered as cloaking?

Yes, that is cloaking. Googlebot should see the exact same page that users see. Google understands javascript and you are denying Google a chance to process the same to determine if the scripts modify ...
Kannan's user avatar
  • 2,343
1 vote
Accepted

Will Google index and assign keyword value to content in closed accordion sections?

Its really up to you and you don't need to worry about leaving the accordion open or closed. Let's say that the content is hidden to the user, accordions uses JavaScript to hide or show the content, ...
Raul Reyes's user avatar
  • 2,476
1 vote

10 megabyte gzip limit in AWS Cloudfront?

My website is a static blog Since your site is static, it is an excellent candidate for s3_website, which will automatically gzip files locally before uploading, and will also handle setting the ...
Tom Brossman's user avatar
  • 2,291
1 vote

How to decrease HTTPs redirect wait time?

In addition to adding the redirect in your server configuration (.htaccess), you should also add a Strict Transport Security header to instruct browsers to directly request the HTTPS url without going ...
tobiv's user avatar
  • 121
1 vote

Is there a way to measure specific dom loading time?

webpagetest.org I use it extensively to test loading times for both resources and javascript. In the waterfall chart in the results, there are bars that go vertically down. They indicate when ...
Mike -- No longer here's user avatar
1 vote

Where to find secure.eyereturn.com appearing on GTmetrix

This comes from your AdSense ads. You can't control how ad networks specify their cache control headers. Your only real option to "fix" this problem is to remove the ads. PageSpeed, GTmetrix and ...
Stephen Ostermiller's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible