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 ...
user avatar
  • 2,335
12 votes
Accepted

Overhaul website - completely remove old content?

Nice question, here are some guides for doing that on that level. 1. CRAWL YOUR SITE When you redesign your website, there’s a good chance that URLs will change. If URLs change, you absolutely have ...
user avatar
  • 3,848
10 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 ...
user avatar
5 votes

Confused about missing width and/or height attributes

Adding the height and width attributes to your IMG SRC HTML tag allows the browser to know how much space to leave for an image. Without these values, the browser gives an image no space until the ...
user avatar
  • 2,476
5 votes

Overhaul website - completely remove old content?

In addition to post-launch actions, I don't think you should completely ignore what's already there. You're speaking in future tense, so I presume the new site isn't ready yet; use that to your ...
user avatar
  • 5,794
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 ...
user avatar
  • 186
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. ...
user avatar
  • 5,551
4 votes

Confused about missing width and/or height attributes

The browser requests this for performance. Say you have a paragraph of text with an image of 100x100 pixels in the top left corner. Browser builds the page, no image yet, so it builds it with just ...
user avatar
  • 6,736
4 votes
Accepted

Why is Google appending "Home" to the title of my page when it appears in the search results?

Google is attempting to append your site name to your title. Most sites put the site name at the end of titles themselves because: It is good for branding It differentiates your listing in the ...
user avatar
4 votes
Accepted

Is it possible to compare http requests with download time?

Yes, if load time is lower, you will have optimised the page. Also, the font file will be cached after the first request, so you will most likely end up with only a single request for the font file. ...
user avatar
  • 211
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 ...
user avatar
  • 149
3 votes
Accepted

Is recomended to use BPG to a website?

At the moment BPG looks promising, but is something I would not use on production websites (yet). Why? It requires javascript, so users without javascript have no images. Decompression and rendering ...
user avatar
3 votes

Mobile Browsers! Do they ignore `<noscript><img>` (Responsive Design with Framework Zurb Foundation (Interchange/Noscript))

My own tests on noscript using firebug's net tab don't actually load any image contained within the noscript tags unless javascript is off. Likewise, the first poster here has no such problems and ...
user avatar
  • 1,925
3 votes

How to smartly optimize ads on website

Probably AB testing AB test your pages by showing different ads to different groups of users, record and track the best variations to optimize your CTAs
user avatar
  • 131
3 votes

Do you get penalised for duplicate keyword anchor text within your own website?

I do not see where internal links of this type are penalized. However, it highly advisable not to take this tactic for two very good reasons. 1] It would be rightly seen as manipulation and any ...
user avatar
  • 32.5k
3 votes
Accepted

How to reduce DNS lookups?

The DNS lookup takes place well before the client has started reading the web page, so don't worry about page size. Remember that DNS is basically the process of translating a domain name to an IP ...
user avatar
  • 486
3 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. ...
user avatar
  • 4,609
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 ...
user avatar
  • 4,609
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 ...
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 ...
user avatar
  • 302
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. ...
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 ...
user avatar
3 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 ...
user avatar
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 ...
user avatar
  • 5,152
2 votes

How to smartly optimize ads on website

Your question is google-adsense tagged, so the first what you will probably want to try are "AdSense Experiments". https://support.google.com/adsense/answer/4599562?hl=en Here are some examples of ...
user avatar
  • 311
2 votes

How can I find unused/unapplied CSS rules in a stylesheet?

Check uncss, it's a node module. "UnCSS is a tool that removes unused CSS from your stylesheets. It works across multiple files and supports Javascript-injected CSS." https://www.npmjs.com/package/...
user avatar
  • 325
2 votes

Mobile Browsers! Do they ignore `<noscript><img>` (Responsive Design with Framework Zurb Foundation (Interchange/Noscript))

According to Mozilla, there support for <noscript> on mobile browsers is good: Android - (Yes) Firefox Mobile (Gecko) - 1.0 (1.0) IE Mobile - (Yes) Opera Mobile - (Yes) Safari Mobile - (Yes) ...
user avatar
2 votes

Best way to optimize joomla cache. Difference between Global configuration cache and system cache plugin

As I understand it, the global settings version caches the views and parameters of components and modules, rather than the content. This means that if you change the content, then the change will be ...
user avatar
  • 1,925
2 votes
Accepted

How to fix "No Etag header found" error?

In PHP, you can use the header function to specify a custom Etag as follows: $et="11111"; // any custom etag value header("ETag: \"".$et."\"",true); Just make sure when you update the webpage in ...
user avatar
2 votes

What size (in bytes) constraints are industry standard for web images?

The answer is the same as it was back then: what does your userbase support? Back in the day almost everybody was on dial up so you need to keep page sizes to a minimum to allow your page to load in ...
user avatar
  • 85.8k

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