Skip to content

Commit

Permalink
updated example for the render option
Browse files Browse the repository at this point in the history
didn't make much sense to show the default option
  • Loading branch information
staaky committed Nov 14, 2014
1 parent 28ff4c4 commit 600bc6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ Options can be set as the first parameter.
+ `natural` - _Boolean_ - Callbacks are called as soon as `naturalWidth/Height` are available when `true` (the default). Using `false` will call callbacks as soon as `onload` fires on a detached Image object, which is slower, but can give the image more time to render.
```js
$('#container').voila({ natural: true }, function(instance) {
// give images more time to render with natural:false
$('#container').voila({ natural: false }, function(instance) {
$.each(instance.images, function(i, image) {
var img = image.img;
console.log(img.src + ' = ' + img.naturalWidth + 'x' + img.naturalHeight);
Expand Down

0 comments on commit 600bc6e

Please sign in to comment.