
Loading…
contentscript-end.js: remove overhead of short-lived function expression #683
gorhill
commented
Owner
chrisaljoudi
commented
@gorhill line no.?
gorhill
commented
Core code.
Owner
chrisaljoudi
commented
@gorhill sure, was just curious — sorry. :)
gorhill
commented
The onAnswerReceived function was created for each load or error event.
I was laconic because I was about to commit the changes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can get rid of the closure, hence the overhead of the function expression created for each image/iframe/object's load/error event.