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

Make imgOnLoad functionality optional #183

Closed
treechime opened this issue Feb 5, 2020 · 3 comments
Closed

Make imgOnLoad functionality optional #183

treechime opened this issue Feb 5, 2020 · 3 comments

Comments

@treechime
Copy link

I'm building a very image dense display site using OverlayScrollbars with custom horizontal scrolling. Due to the nature of the layout all of the images have fixed dimensions even prior to loading, so this imgOnLoad functionality is totally unnecessary in my case and actually causes a huge amount of lag on page initialisation. I've commented all references to the function out in my local copy of the js file and performance has improved significantly.

Just a suggestion for enhancement 🍐
Love the plugin by the way. Super useful!

@KingSora
Copy link
Owner

KingSora commented Feb 5, 2020

Good day!

Thats a good idea, previously it was planned to make this functionality optional, but since nobody has mentioned it until now I've completely forgotten about it.

Thanks for this!

@treechime
Copy link
Author

Thanks! 😁

@KingSora
Copy link
Owner

KingSora commented Apr 5, 2020

This is now implemented in v1.12.0! Set the new updateOnLoad option to null to remove any automatic updates on a load event.

@KingSora KingSora closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants