Skip to content

add option to force load hidden images#34

Closed
yoyurec wants to merge 1 commit intodinbror:masterfrom
yoyurec:force-load-hidden-images
Closed

add option to force load hidden images#34
yoyurec wants to merge 1 commit intodinbror:masterfrom
yoyurec:force-load-hidden-images

Conversation

@yoyurec
Copy link

@yoyurec yoyurec commented Sep 3, 2014

in a project i have images in hidden tabs, so they are not rendered (b'cose of display:none)

ele.offsetWidth = ele.offsetHeight = 0

even when i used you public function load(item)

so it's a good idea to add an option to force them to load, like load(item, true)

@tomByrer
Copy link

Makes sense; mouse over effects & other animation.

dinbror pushed a commit that referenced this pull request Jan 23, 2015
@dinbror
Copy link
Owner

dinbror commented Jan 23, 2015

Implemented in version 1.3.0. Thanks for the sugguestion

@dinbror dinbror closed this Jan 23, 2015
@shinnn
Copy link

shinnn commented Mar 14, 2015

@dinbror How about adding force option to the Blazy constructor to enable this option by default? I'd like to always pass true to the second argument of Blazy.prototype.load on my project.

var blazy = new Blazy({
  force: true
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants