Skip to content

Loading…

contentscript-end.js: remove overhead of short-lived function expression #683

Closed
gorhill opened this Issue · 4 comments

2 participants

@gorhill

We can get rid of the closure, hence the overhead of the function expression created for each image/iframe/object's load/error event.

@chrisaljoudi
Owner

@gorhill line no.?

@gorhill

Core code.

@gorhill gorhill added a commit that closed this issue
@gorhill gorhill this fixes #683 c7edec0
@gorhill gorhill closed this in c7edec0
@chrisaljoudi
Owner

@gorhill sure, was just curious — sorry. :)

@gorhill

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
Something went wrong with that request. Please try again.