mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:31:56 +08:00
56832adf17
In Safari, `img.complete` is sometimes true even before the image is loaded. Checking for the presence of `img.naturalHeight` seems to be more reliable. It is very difficult to write a test for this behaviour due to the dependence on network conditions, scroll location, etc. `img.naturalHeight` is supported by all our target browsers, and I have verified the functionality of this commit in Chrome, Safari and Firefox. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |