Optimize code
-
Hi Guy's,
In Wordpress we've got the plugin "WP Rocket". It's possible to optimize CSS, JS, HTML and Google Fonts.
If i optimize (minify) CSS and JS the website will load faster and the pagespeed will be reduced. So i guess that's always better for SEO results en SERPS...
But what will happen if i optimize my HTML code? It will be much shorter but less organized. Will this also affect SEO results and rankings? I'm awear that less code will increase my text ratio, but don't know if Google will punish the website for having a code that's not very good organized.
Thanks!
-
Top thanks The only strange thing was that when i optimize my HTML code the Text/HTML ratio decreased :S
-
You should minimize / uglify your code - because it speeds up your site (https://developers.google.com/speed/docs/insights/MinifyResources).
Don't worry about readability/organisation of the code - that's for humans. Browsers & bots interpret the code - and as long as it is (more or less) valid HTML it will be rendered/crawled without problems.
Dirk
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
422 vs 404 Status Codes
We work with an automotive industry platform provider and whenever a vehicle is removed from inventory, a 404 error is returned. Being that inventory moves so quickly, we have a host of 404 errors in search console. The fix that the platform provider proposed was to return a 422 status code vs a 404. I'm not familiar with how a 422 may impact our optimization efforts. Is this a good approach, since there is no scalable way to 301 redirect all of those dead inventory pages.
Technical SEO | | AfroSEO0 -
How to optimize for different google seach center (google.de, google.ch) ?
We all use Deutsch language and (.com) domains for the sites. I ranked well in google.com ,but not so well in google.de , google.ch , my competitors ranked much better in google.de,google.ch. I checked most of their outbound-links, but get few information. Links from (.DE) domains or links from sites located in German help the rank for special google seach center ? (google.de, google.ch) . Or some other factors i missed? please help.
Technical SEO | | sunvary0 -
Where to find database optimize expert ? (My website get down every day)
Hi all, My website is based on Vbulletin forum software, with 10 years of database (about 50GB), my websitetraffic is about 12mil/month, we using 20 server for this website. Website down every day, when i use SEOMoz to crawl my site, SEOMoz crawled 486 page, 462 page return 403 response code > i don't know why ??? I'm looking for someone (some company) who can help us to optimize this database, make it faster. Thanks for any contact/advice/suggestion company from you. Ninh
Technical SEO | | firstjames0 -
Optimizing Dynamic landing pages in specific Geo-Locations
I have a website that has a a dynamic URl for individual dealer landing pages - this works based on the geo-location tool on the site. When a user comes it it will recognize their location based on IP address then present the appropriate content based on zip code logic. Example URL: http://www.3mwater.com/?___store=dealer Example URL: http://www.3mwater.com/dealer/ Question: How can I best optimize each individual page for each individual dealer when the URL stays static regardless of dealer? Thank you!
Technical SEO | | Yanez0 -
Suggestions on good framework/code for building an optimized website?
There seem to be quite a few template, framework, and theme options for building a site optimized for search. I'm currently looking at Socrates and Genesis premium themes for Wordpress. Does anyone have experience or suggestions on these resources?
Technical SEO | | ksracer0 -
Shopping engine optimization
I am looking for some help to know more about shopping engine optimization for an online retailer. I would like to know about the best seo tools for this and also any companies that you can recommend. Thank you Mozzers! Vijay
Technical SEO | | vijayvasu0 -
Tips on How to Optimize a Forum
Hi, I am looking for some good tips and tricks on how to get the most of a vBulletin Forum, we already got vbseo.com which works quite nice for text/titles and many other stuff, but it would be great to know some insights on optimizing this kind of forums or any other forum. thanks!
Technical SEO | | andresgmontero0