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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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.
...
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 ...
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 ...
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.
...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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/...
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)
...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
optimization × 186seo × 62
page-speed × 28
images × 25
performance × 25
css × 15
google × 11
wordpress × 11
javascript × 9
web-development × 9
load-time × 9
cdn × 8
web-hosting × 6
html × 6
cache × 6
google-analytics × 5
htaccess × 5
keywords × 5
compression × 5
domains × 4
google-search × 4
search-engines × 4
google-adsense × 4
mobile × 4
cloudflare × 4