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

Detect loading to support older devices/browsers #31

Open
brokenhd opened this issue Jul 14, 2020 · 1 comment
Open

Detect loading to support older devices/browsers #31

brokenhd opened this issue Jul 14, 2020 · 1 comment

Comments

@brokenhd
Copy link
Member

For ie11 and ipad 5th gen 12.1.1 type devices

Some info on feature detection here: https://addyosmani.com/blog/lazy-loading/ and here https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement

Need to make sure that lazyload is only set on the browsers that support it via 'loading' in HTMLImageElement.prototype detection.

@weotch
Copy link
Member

weotch commented Jul 14, 2020

Sounds like we can't trust this native load event: https://github.com/BKWLD/vue-visual/blob/master/index.vue#L43. I'm hoping we can find a good poly/pony-fill for that so we don't have to just ditch lazy loading ... but that's not terrible either IMO since it's a smallish set and not really breaking functionality.

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

No branches or pull requests

2 participants