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. Intermediate & Advanced SEO
    4. Improvement in Page Speed worth Compromise on HTML Validation?

    Improvement in Page Speed worth Compromise on HTML Validation?

    Intermediate & Advanced SEO
    11 5 421
    • 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.
    • MoosaHemani
      MoosaHemani last edited by

      I am not a developer so any developer with a SEO background can tell you better but in general page load speed is important both from user point of view as well as search engine rankings and as far as W3C validation is concern, there are quite a few errors that you can ignore in order to stick with your page load speed.

      Hope this helps!

      Kingalan1 1 Reply Last reply Reply Quote 1
      • Kingalan1
        Kingalan1 @MoosaHemani last edited by

        Thanks so much. I understand most errors are not too important. However I wonder if a "fatal" error should not be of grater concern.

        Thanks, Alan

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

          That error is coming up from the validator because the links to your stylesheets are outside the ending body and html tags. The stylesheet links normally go within the tags at the top but I understand from what you've said for page speed these have been moved to the bottom page however no tags / html / stylesheets / javascript etc  should be outside the ending and tags.

          If you move the CSS stylesheet references and the comments so they are where the javascript files are (before the ending tags) that would fix the fatal error you are seeing.

          Hope that helps!

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

            Would correcting the code in this manner so the html validates result in a slower page load timE?

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

              I'm not sure if it would affect the current page speed but it would fix the invalid HTML error from the validator. If the validation errors concern you it might be worth giving it a try and testing the result? It's good to make sure that pages validate all the high issues at least to be sure of no possible display or rendering issues in different browsers now or in the future.

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

                1. Taking shortcuts that are not sound sustainable based methods to gain value somewhere else is almost certainly going to become a problem when you least expect it at some future date and this is a great example.  Moving CSS and or JS to below the proper location is a recipe for complete page display failure on any number of devices that may or may not current exist.

                Have you tested your pages with Google's Fetch and Render to ensure they properly load, or where they may get a "partial" result? If they get a "partial" result, that's a red flag warning that you ignore at your own peril.

                2. You haven't provided numbers - is the page speed improvement a case of going from 20 seconds to down to 5 seconds? Or is it going from 8 seconds to 6 seconds? Or what?  This matters when evaluating what to care about and expend resources on.

                3. If just moving those to their proper place in the page header section is causing speeds to slow down dramatically, you have bigger problems. First one that comes to mind is "why do those scripts / CSS files cause so much speed slowdown? Its likely they're bloated and need to be reduced in size, or they're housed on a pathetic cloud server that is itself doing you more harm than good.

                Kingalan1 1 Reply Last reply Reply Quote 3
                • Kingalan1
                  Kingalan1 @AlanBleiweiss last edited by

                  Thanks for your excellent, highly detailed response!!

                  Is there a way to test the CSS files that my developer has created to see if they are coded in an efficient and concise manner?

                  We use a virtual private server at Inmotion Hosting and Amazon CDN for for images.  So I would think that the hosting service is adequate. Traffic does not exceed 3000 unique visitors a month so the load on the server is minimal.

                  AlanBleiweiss 1 Reply Last reply Reply Quote 0
                  • AlanBleiweiss
                    AlanBleiweiss @Kingalan1 last edited by

                    Kingalan1

                    I'm not a programmer by trade - the way I begin even considering these things is by running tests on various tool platforms.

                    For example, put a page you think is slow into URIValet.com - test as Googlebot.  The resulting report has a block of information in it regarding total size of files processed.  It breaks that data down to file types.  Look at the CSS/JS lines - if they are more than 50k to 100k total for either CSS or JSS, there is almost certainly inefficiency in there, and likely unnecessary bloat.

                    Go to WebPageTest.org and do the same - put in the URL you want to check - choose a server location and DSL (which gives a fair mid-range speed evaluation), and Chrome as the browser emulator.  The resulting report gives you a lot of information, however the one page in that report that may be most helpful in this situation is the "Details" report - if you go there, and scroll down, you'll get to the section that lists, line by line, every single file, script, image and asset processed for that page, and all of the data on speed of processing each step of the way (such as First Byte Time, DNS lookup, SSL lookup, and more).  Those can reveal several individual bottleneck points.

                    1 Reply Last reply Reply Quote 2
                    • CleverPhD
                      CleverPhD last edited by

                      I agree with Alan's points.  I have also found WebSiteTest.com really useful.  It allows for multiple runs on multiple devices and you can download the results in CSV.  Expanding on Alan's point around looking at bottleneck points, when you use these tools, you need to take time to understand the waterfall chart as that is where you can see how the browsers interact with all of these files (html, css, js, images etc).

                      I have been doing a ton of reading on front end optimization recently.  Aside from all of the above, you could have issue with the critical rendering path (great resources here and here).  Many times folks look at a single asset and say, "This javascript file is too big, lets minify it and get faster!"  That is a good thing and will help you.  That said, you have to look at the render path as you may have that same smaller JS file blocking other downloads that need to be downloaded first to render the page faster.  Optimizing the render path can give you some additional gains.

                      Good luck!

                      AlanBleiweiss 1 Reply Last reply Reply Quote 2
                      • AlanBleiweiss
                        AlanBleiweiss @CleverPhD last edited by

                        Yeah sequence of load is also important when its time to go granular to find the true opportunities. Because the up-front evaluation time that can identify issues, can often result in faster-easier-more template-driven ways to speed up everything on a larger scale with less effort needed.

                        That doesn't mean its okay to ignore other bottlenecks.  Just that the more clarity of understanding, the more likely real, sustainable success can be achieved.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        • Structure of HTML Page
                          Roman-Delcarmen
                          Roman-Delcarmen
                          1
                          2
                          107

                        • May integrating my main category page in the index page improve my ranking of main category keyword?
                          EGOL
                          EGOL
                          1
                          4
                          44

                        • How does Googlebot evaluate performance/page speed on Isomorphic/Single Page Applications?
                          Martijn_Scheijbeler
                          Martijn_Scheijbeler
                          1
                          2
                          171

                        • Google Page Speed
                          RuthBurrReedy
                          RuthBurrReedy
                          0
                          9
                          449

                        • Worth Improving HTML Sort Order?
                          Kingalan1
                          Kingalan1
                          0
                          4
                          94

                        • Possible to Improve Domain Authority By Improving Content on Low Page Rank Pages?
                          PatrickDelehanty
                          PatrickDelehanty
                          0
                          2
                          812

                        • Webmaster Tools HTML Improvements Page Blank / Site Not Ranking Well
                          evolvingSEO
                          evolvingSEO
                          0
                          2
                          299

                        • Tips for improving this page
                          IOSC
                          IOSC
                          0
                          3
                          126

                        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

                        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