The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Optimize code

    Optimize code

    Technical SEO Issues
    3 2 138
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Happy-SEO
      Happy-SEO last edited by

      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!

      1 Reply Last reply Reply Quote 1
      • DirkC
        DirkC last edited by

        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

        1 Reply Last reply Reply Quote 4
        • Happy-SEO
          Happy-SEO last edited by

          Top thanks 🙂 The only strange thing was that when i optimize my HTML code the Text/HTML ratio decreased :S

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Could I optimize my homepage anymore ?
            EricaMcGillivray
            EricaMcGillivray
            0
            7
            193

          • Optimizing Forums
            MattRoney
            MattRoney
            0
            3
            134

          • Redirect 302 status code to 301 status code
            rijwielcashencarry040
            rijwielcashencarry040
            0
            5
            145

          • Page Over-optimized?
            seointern
            seointern
            0
            15
            717

          • Suggestions on good framework/code for building an optimized website?
            ksracer
            ksracer
            0
            4
            638

          • Schema coding
            DragonSearch
            DragonSearch
            0
            3
            647

          • Coding - where to start?
            simonsw
            simonsw
            0
            8
            610

          • Optimizing the canibalization
            AlanBleiweiss
            AlanBleiweiss
            0
            4
            716

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy