Solved

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

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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 …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

820 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