Current time: 07-24-2019, 06:58 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inline JavaScript Experiment
07-09-2010, 08:39 PM
Post: #3
RE: Inline JavaScript Experiment
The script I used for the experiment is 15 KB in size so it does not add -much- weight across the website but it does add some to the main document for repeat views.

This script is mainly functions that are used on most webpages across the site and includes functions to import other JavaScript asynchronously. When I first came to webpagetest.org, I had over 200KB of JavaScript that blocked other resources from being downloaded.

I believe in this case the negative page weight penalty is outweighed by having one less resource to download, the ability to download an additional resource in parallel, and the deduction of the time to first byte for the external JavaScript file that is being inlined.

Mobile users are not a concern at this point. I have little experience designing applications for mobile users unfortunately but perhaps in the future I will consider this.

On a side note, I also saw a bit of a difference when I got rid of white space, but that was not involved in this particular experiment.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Inline JavaScript Experiment - green-watch.org - 07-09-2010 08:39 PM
RE: Inline JavaScript Experiment - pmeenan - 07-10-2010, 02:50 AM
RE: Inline JavaScript Experiment - pmeenan - 07-10-2010, 05:33 AM
RE: Inline JavaScript Experiment - pmeenan - 07-11-2010, 01:42 AM
RE: Inline JavaScript Experiment - sajal - 07-12-2010, 08:04 AM
RE: Inline JavaScript Experiment - pmeenan - 07-12-2010, 02:19 AM
RE: Inline JavaScript Experiment - jklein - 07-13-2010, 12:19 AM
RE: Inline JavaScript Experiment - jklein - 08-05-2010, 05:10 AM
RE: Inline JavaScript Experiment - pmeenan - 08-11-2010, 05:05 AM
RE: Inline JavaScript Experiment - jklein - 07-13-2010, 12:49 AM
RE: Inline JavaScript Experiment - pmeenan - 07-13-2010, 05:42 AM
RE: Inline JavaScript Experiment - pmeenan - 07-13-2010, 09:09 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)