Google has been trying to steer webmasters away from dynamically serving webpages as it makes it harder to index content, there can be duplicate content issues, and there’s always a potential spam issue. And it is becoming somewhat outdated for many usages that webmasters were previously using it for, although it is still used for things such as serving location specific content based on a visitor’s IP address.
Pierre Far of Google suggests that webmasters use the following when dealing with JavaScript, CSS and images.
1. For JavaScript, you can use simple code (an if statement) embedded in the HTML to fetch different JS files.
2. For CSS, you can use different media queries to download the right CSS file.
3. For images, you can use the <picture> element or srcset attributes as described here: http://responsiveimages.org . Granted browser support is not 100% yet, but it’s quickly coming along, so prepare to benefit from this soon!
It also raises the question about whether Google is bringing this up because it has plans to algorithmically downrank (at least to a small degree) sites using dynamically served content in the future as a way to curb spam and other search issues that go along with dynamically served content. We know Google already negatively impacts websites when webmasters block elements such as CSS and javascript from being crawled by Googlebot, so it could be something they are considering in the future on sites using dynamic elements.
Jennifer Slegg
Latest posts by Jennifer Slegg (see all)
- 2022 Update for Google Quality Rater Guidelines – Big YMYL Updates - August 1, 2022
- Google Quality Rater Guidelines: The Low Quality 2021 Update - October 19, 2021
- Rethinking Affiliate Sites With Google’s Product Review Update - April 23, 2021
- New Google Quality Rater Guidelines, Update Adds Emphasis on Needs Met - October 16, 2020
- Google Updates Experiment Statistics for Quality Raters - October 6, 2020