Solved

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

Posted on 2013-10-30
6
245 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
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.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now