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
-
Do long UTM codes hurt SEO?
Since most UTM codes/URLs are longer than 70ish characters, is this hurting my SEO? If it is, how can I solve the problem while still using a UTM code? Thanks!
Technical SEO | | Cassie_Ransom0 -
Tags v a short code for city and town seo
My seo strategy is based around uk county geo and genre pages I want to optimise for cities and towns too and wanted to know your thoughts on tags v a nice little short code plug in that will punt out a random band order from that area and a genre. Then thinking of unique geo and genre target. What do you think? [loop type=bands-to-hire taxonomy=Genres term=blues-band count=3 orderby=random]
Technical SEO | | agentmorris1
[field thumbnail]
[field genres]
[field title-link]
[field excerpt] [/loop]0 -
Optimizing a Forum (phpbb3)
Hi all, Over the last 6 months our small forum has be getting a tiny bit of traffic. We would like to make the forum a larger part of what we are offering (content wise). Regardless, I am wondering if anyone had any recommendations for optimizing a phpbb3 forum as Moz seems to keep telling me that I have 70,000 pieces of duplicate content, duplicate pages, etc. While the site crawl by moz outputs varying results week to week, it appears to be tagging posts and responses to posts as duplicate content. I am concerned that Google may be doing the same. Additionally, are there any recommendations for best practices related to forum meta descriptions and page titling as well? Any advice would be greatly appreciated. Sincerely, Jared P.
Technical SEO | | wallacep0 -
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 -
Disavowing Links: Over-optimized Anchor Text
If a site has been effected by Penguin, and the main issue is over-optimized anchor text. Would the disavow file take care of this? If there is a no-follow added to the link when Google next crawls the site, wouldn't you still have the optimized anchor text in your profile?
Technical SEO | | inhouseseo0 -
What have i done wrong with this facebook comment code
Hi, i have a page here http://www.in2town.co.uk/trip-advisor/african-safari-is-a-dream-holiday-destination and i am trying to have a comment section through facebook on there, and although i have got it on, i think i have done something wrong as i can manage or delete the comments. i have read the instructions but not managing to follow them. i have tried going into the developers section but that just gives me the option of website apps on facebook mobile apps now i have tried going into these but there is no code or anything, so i am not sure what i am doing wrong. the way i have done it is, by just using a joomla module as i work in joomla 1.5 but where it says Facebook comments application ID i have just put my webpage details in there. the module i am using is
Technical SEO | | ClaireH-184886
mod_phoca_facebook_comments any help in finding the application id or the correct way of doing it would be great thanks0 -
How should I structure a site with multiple addresses to optimize for local search??
Here's the setup: We have a website, www.laptopmd.com, and we're ranking quite well in our geographic target area. The site is chock-full of local keywords, has the address properly marked up, html5 and schema.org compliant, near the top of the page, etc. It's all working quite well, but we're looking to expand to two more locations, and we're terrified that adding more addresses and playing with our current set-up will wreak havoc with our local search results, which we quite frankly currently rock. My question is 1)when it comes time to doing sub-pages for the new locations, should we strip the location information from the main site and put up local pages for each location in subfolders? 1a) should we use subdomains instead of subfolders to keep Google from becoming confused? Should we consider simply starting identically branded pages for the individual locations and hope that exact-match location-based urls will make up for the hit for duplicate content and will overcome the difficulty of building a brand from multiple pages? I've tried to look for examples of businesses that have tried to do what we're doing, but all the advice has been about organic search, which i already have the answer to. I haven't been able to really find a good example of a small business with multiple locations AND good rankings for each location. Should this serve as a warning to me?
Technical SEO | | LMDNYC0 -
Meta description showing in source code but not being detected by SEO Moz or other tools?
Hello fellow SEO enthusiasts, Re www.appetise.com Our developers have added a meta description and I can see it when I right click on pages to 'view source' as follows : Example : BUT - using the on page seo assessment tool on SEO Moz (and also using other tools which assess title, description and keyword optimisation) - they are telling us that the meta description is not present. Please could someone suggest why? If we can get the meta description picked up - we will reach A Grade for our core pages! And this will make us feel good - and hopefully shine through in our results :-). Any help greatly appreciated. Kind Regs, Richard Best - Appetise.com <meta http-equiv="description" content="Online Takeaway Food with appetise.com. 100's of Local Takeaways Menus Online. Order Take Away Food Online for Delivery. Pay by Card Safely. Including Pizza, Chinese, Indian, Italian, Kebab."/>
Technical SEO | | E-resistible0