This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Sam Saffron 0d757814e5 FIX: correctly account for onebox height when lazy loading images
Page used to jitter when oneboxes loaded images lazily.

Previously we inserted the the "shadow" loading image before the "real" image.

This meant that certain styling with `firstChild` CSS selectors would apply
incorrectly to the shadow image.

Additionally we had special case code for onebox and quoted images that was
not really needed due to this fix.

We had an old fix that used computed style for image height and width in
specific scenarios, we now run it all the time.

On slow devices there was a possibility that the cache fetch after amending
src at the end of the process would cause a flash, this is avoided using a
new onload handler.
2020-01-03 15:15:42 +11:00
..
adapters FEATURE: Tag synonyms 2019-12-04 13:33:51 -05:00
components FIX: any global notice text can contain HTML (#8655) 2020-01-02 19:58:27 +01:00
controllers FIX: English and US date/time formats 2019-12-24 12:17:25 +01:00
helpers FIX: Reorder categories not working 2019-12-10 12:36:47 -07:00
initializers FEATURE: Modal for profile featured topic & admin wrench refactor (#8545) 2019-12-16 08:41:34 -08:00
lib FIX: correctly account for onebox height when lazy loading images 2020-01-03 15:15:42 +11:00
mixins FIX: Open a card on click even if the mention has extra elements (#8626) 2019-12-30 19:26:23 +01:00
models FIX: category routes model params should decode their URL parts (#8612) 2019-12-23 10:24:41 -08:00
pre-initializers DEV: Add unambiguous routes for tags 2019-12-13 11:24:59 +00:00
raw-views DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
routes Revert "Rename 'target usernames' with 'target recipients' in Composer (#8468)" 2019-12-20 11:56:20 +02:00
services DEV: Move computed to discourseComputed (#8312) 2019-11-07 15:38:28 -06:00
templates FIX: any global notice text can contain HTML (#8655) 2020-01-02 19:58:27 +01:00
widgets FIX: Only show admin wrench when there are actions on mobile 2019-12-31 12:35:44 +00:00
mapping-router.js.es6 DEV: Remove Discourse.Site in favor of import (#8344) 2019-11-13 12:13:47 -05:00