An open API service indexing awesome lists of open source software.

https://github.com/html-next/ember-async-image

A lightweight performance minded image component.
https://github.com/html-next/ember-async-image

Last synced: 8 months ago
JSON representation

A lightweight performance minded image component.

Awesome Lists containing this project

README

          

# Ember-async-image

[![npm version](https://badge.fury.io/js/ember-async-image.svg)](http://badge.fury.io/js/ember-async-image)
[![Build Status](https://travis-ci.org/runspired/ember-async-image.svg)](https://travis-ci.org/runspired/ember-async-image)
[![Ember Observer Score](http://emberobserver.com/badges/ember-async-image.svg)](http://emberobserver.com/addons/ember-async-image)

A lightweight performance minded image component.

`{{async-image}}` is a `1:1` drop in replacement for ``, introducing no
additional markup and containing optimized teardown and image swapping.

Extracted from [smoke-and-mirrors](https://github.com/runspired/smoke-and-mirrors)

## Usage

```hbs
{{async-image
src=(if attrs.imageSrc attrs.imageSrc attrs.imagePlaceholder)
alt=attrs.imageAlt
title=attrs.imageTitle
}}
```