Why assets size not always the same?

In html5, sometimes, I get different size for the same assets loaded, either from swf or images!
Example:

then, if I refresh the browser, I get the correct size:

Any idea about this strange behavior? and suggestion to solve this?