$(document).width() returns different results depending on when it's called
<p>when calling <code>$(document).width();</code> inside <code>$(window).load(function(){})</code> or <code>$(document).ready(function(){})</code> I get a different result to when I'm calling it from inside <code>$(window).resize(function(){})</code> <br />
the value is about 100px off so it's not because I am resizing the window, any ideas why this is happening?
<br />
EDIT:<br />
Browser: Firefox 8.0.1</p>
