Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to force load hidden images #34

Closed
wants to merge 1 commit into from
Closed

add option to force load hidden images #34

wants to merge 1 commit into from

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