Solved

HTML Mystery.  Super basic, but makes no sense.  Can anyone figure it out?

Posted on 2013-10-30
6
248 Views
Last Modified: 2013-12-02
Here are 3 super basic HTML test pages:

http://bit.ly/19TGMRp
http://bit.ly/1apuTFx
http://bit.ly/HfS9ZZ

If you look at the code behind....the third one is simply the first and second combined.
Now lets test them in Google's Page Speed Analyzer:
1.  http://bit.ly/1cru2pk   SCORE = 100/100  
2.  http://bit.ly/18EeLJA   SCORE = 100/100
3.  http://bit.ly/16NQ8ur  SCORE = 92/100  ????

This is what puzzles me.   The third page is simply adding the exact same lines of page 1 and 2, which both got 100/100.  I can find no logical reason why the third page would score less than 100.   Can someone please explain why Google would drop the page rating on the third page, when it gives the first two perfect scores?   I'm completely lost on this one.
0
Comment
Question by:arthurh88
  • 3
  • 2
6 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39613216
Start by putting the script before the closing body tag, as it is now it is not valid html which will make things slower.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39613323
I don't think there is enough content there to matter.  I don't think your simple tests are telling you anything that is of use because everything you add to create a real page will affect those scores.  And of course, getting a 100/100 score from Google doesn't mean your page is worth visiting.
0
 

Author Comment

by:arthurh88
ID: 39613325
Hi Gary.  If that is the case, then why does Google give 100/100 on the page that has the script in the head tag? Why would Google suddenly penalize the script placement on one page when on the other page it doesn't?   I am trying to find the logic in what is going on.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:arthurh88
ID: 39613329
Dave, I know there isn't much there.   I just want to know what Google's logic is regarding its downgrade of the score.
0
 

Author Comment

by:arthurh88
ID: 39613332
Oh I see Gary, I may understand what you are saying.  I'll go give your idea a try.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39614273
I was talking about example 3 where you have it after the closing html tag.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to dynamically set the form action using jQuery.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question