Subject: bug#59902: 30.0.50; Image overlay is not updated until the cursor moves to the overlay

From: Eli Zaretskii <[email-masked]>
Date: Thu, 15 Dec 2022 13:16:16 +0200

> From: Ihor Radchenko <[email-masked]>
> Cc: [email-masked]
> Date: Thu, 15 Dec 2022 11:05:56 +0000
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> >> Hooks will be executed first time an image is opened. This may cause
> >> slowdowns when there is a huge number of inline images in the buffer,
> >> first time they are displayed.
> >
> > Which hooks are we talking about here?
> 
> find-file-hook, change-major-mode-after-body-hook,
> and after-change-major-mode-hook.

You can let-bind them to nil around that snippet, mo?