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. Web Design
    4. Can minifying the html of page have a negative effect on seo?

    Can minifying the html of page have a negative effect on seo?

    Web Design
    3 3 2.5k
    • 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.
    • mike878
      mike878 last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Alick300
        Alick300 last edited by

        Hi,

        It is google suggestion to minify html  so I don't think it will affect in any negative ways. Google says and I quote

        "Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser - e.g. code comments and formatting, removing unused code, using shorter variable and function names, and so on."

        so there won't be any issue if you minify as per Google guideline.

        https://developers.google.com/speed/docs/insights/MinifyResources#overview

        Hope this helps.

        Thanks

        1 Reply Last reply Reply Quote 0
        • ATP
          ATP last edited by

          Hi Mike,

          You need to look at this 2 ways.

          1. From the machine perspective.

          From the google bots point of view, comments, white space and formatting etc are redundant, they don't make the content easier to read as its only interested in the code itself that gives it information. The minifying effect simply makes less data to read/download making the site faster. From an SEO point of view this is a advantage.

          2. From a developers point of view.

          From a developer point if view, having the html legible is important for all the obvious reasons. Minimising makes the code horrific to edit and develop. SEO wise this confers little advantage, as making is this way increases the size of the document.

          The solution.
          Maintain 2 versions of the files. A development copy which is nicely formatted and easy to develop and a minimised version that you recreate whenever you make changes. There are countless tools that will auto minimise your html, css and javascript quickly and easily for you.

          If you are using a CMS such as wordpress / magento etc then this is less likely to be something you can address, however, i do believe add-ons and plugins exist that do this for you automatically.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Hi, we are adding button in the top of page bar which are links to the other pages, how can we make these links visible to the search engines? As we cannot introduce anchor text there
            MattAntonino
            MattAntonino
            0
            5
            114

          • Can the website pages have the site name like Title of the page | Sitename.com
            AndersS
            AndersS
            0
            5
            198

          • Is there any negative SEO effect when using Wordpress for your Blog?
            cschwartzel
            cschwartzel
            0
            8
            1.4k

          • We believe we accomplished an SEO Parallax site with a nice balance. Can the MOZ community critique this site from an SEO perspective?
            SEO-Buzz
            SEO-Buzz
            0
            3
            302

          • Websites with only one "html file" and page href # is good for SEO?
            AlanMosley
            AlanMosley
            0
            3
            509

          • I have a button that repeats it self many times on same page, what can i do so button name does not affect my SEO?
            SeMeAntoja
            SeMeAntoja
            0
            3
            483

          • Can including advertising slots have a negative effect on SEO?
            RobMay
            RobMay
            0
            8
            1.8k

          • Seo for flash home page?
            timwills
            timwills
            0
            4
            1.4k

          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