Some extra informations about episode.js

96 views
Skip to first unread message

sebastie...@cleverscale.com

unread,
Apr 24, 2013, 5:51:25 AM4/24/13
to webep...@googlegroups.com
Hello,

I need some extra informations about episode.js and your exemple : http://stevesouders.com/episodes/ex1.html

I do not understand why is it useful to make this :
 
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" onload="EPISODES.measure('jQuery done')"></script>

I can not see somewhere a EPISODES.mark('jQuery done'), so how can we have an representative value? We only know the milestones between the load of jquery and Episode.js (negative valuein this exemple)

If i understood well, if we want to know the real time taking by jQuery to load, i have to add a  EPISODES.mark('jQuery done') at the start of the jquery library. Right?

Thank you

 

Steve Souders

unread,
Apr 24, 2013, 2:20:05 PM4/24/13
to webep...@googlegroups.com
There's no way to know when a request starts using JavaScript. Due to connection limits, blocking, etc. there can be a lag between when the browser knows about a resource and when the resource is requested. So in the case of this example page, we're just measuring when jQuery finishes.

-Steve
Reply all
Reply to author
Forward
0 new messages