ember-async-image
ember-async-image copied to clipboard
A lightweight performance minded image component.
Ember-async-image
A lightweight performance minded image component.
{{async-image}}
is a 1:1
drop in replacement for <img >
, introducing no
additional markup and containing optimized teardown and image swapping.
Extracted from smoke-and-mirrors
Usage
{{async-image
src=(if attrs.imageSrc attrs.imageSrc attrs.imagePlaceholder)
alt=attrs.imageAlt
title=attrs.imageTitle
}}