MaxImageSize isn't invoked when hashes are in URL?

I have an install of 2.0.17.8 upgraded from 2.0.16. I installed MaxImageSize to keep inline images in check. It seems to work fine, as long as there's no hash at the end of the URL (ex discussion/13/logo-critique#Item_26). If there is, it seems like the JS call isn't fired.
0
Comments
$(document).ready(function() {
to this:
$(window).load(function() {
then the problem should be fixed.
You may also want to include a rule like this in your theme:
#Content img { max-width: 659px; /* where 659 is the maximum image width */ }