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
Extending load
function instead of overriding
#235
Comments
Hi! Maybe for backward compatibility and better API, we can just add new |
+1 |
On doc describes the method 'loaded', maybe it help you:
|
Does anyone have found any solution for this, or someone have already open a pull request? Maybe it's possibile to simply add a
and call them in the
What do you guys think? |
Expected Behavior
I would like to extend
load
function not to override it, e.g. add dispatching some event, add some logs etc.Current Behavior
I can provide my own
load
function which override the default one. So if I write something like this:lazy loading will not work, because my function (with only
console.log
) will override the default one.Possible Solution
Export
load
function fromdefaultConfig
, so I can do this:Context
I want to replace
lazysizes
withlozad
, but I need to dispatchlazybeforeunveil
event.The text was updated successfully, but these errors were encountered: