angular2-recaptcha icon indicating copy to clipboard operation
angular2-recaptcha copied to clipboard

Window listeners trigger change detection

Open gempain opened this issue 7 years ago • 0 comments

The recaptcha component seems to bind event listeners to the window object. Particularly, there is a scroll listener which triggers change detection several thousands of times, and slows down the application noticeably.

I would suggest to bind outside of NgZone to avoid this, but I am not sure why they are needed anyway.

gempain avatar Feb 02 '19 22:02 gempain