Any programs out there?
I just did maybe 40 seconds of googling and found this piece of javascript that tells you how fast your page has loaded (if that’s something your looking for).
<script language="javascript">
<!--
var from_time = new Date();
from_time = from_time.getTime();
function show_loading_time() {
var to_time = new Date();
to_time = to_time.getTime();
var secs = (to_time - from_time) / 1000;
document.f.t.value = secs + " seconds";
}
// -->
</script>
<body onLoad="show_loading_time();">
<form name="f" onsubmit="0">
Page Loading Time: <input size="15" name="t" value="Plz Wait" />
</form>
Here’s the link to the website --> http://www.a1javascripts.com/time_related/pageloadingtime/pageloadingtime.html
:bounce:
Thanks. I google’d also, but I guess I was searching for the wrong stuff.
JavaScript version may not be the “correct” version, however. Because JavaScript starts executing AFTER the page is done loading.
Really easy, short, sweet way of doing this in PHP is to put 2 calls to microtime(); in your page, one at the very top, and one at the very bottom, and then compare the difference.
YSlow! plugin for firefox tells you everything, even how to optimise the areas which are taking too long https://addons.mozilla.org/en-US/firefox/addon/5369
i think whats what you may have been looking for, i use it all the time for optimising my sites.
Firebug and YSlow for Firefox are my god send
Goin to test that YSlow now, thanks Jeds.
YSlow = worthless
For instance, we have a site that loads in a blink of an eye, pretty content heavy too. And it gives it a F rating. Things like add an expires header … ok … things like say google.com have no headers and it gives it an A.
Or … put JS at the bottom … yea you can do that if you don’t want your ish to work.