Anchor links do not work on first click

In a current project I have some issues with anchor links.

On the first click it scrolls to the wrong section, but on second click it does scroll to the right section. I already figured out that it is because of the lazy load image settings.

Setting all images to eager made the trick, but since this decreases the performance I was wondering if there might be a better alternativ.

Do you have any ideas?

If relevant here are the links:

Hello @willi.sommer.4711, instead of using eager loading for all images, you can selectively preload the images that are within the anchor link target sections. This ensures that the necessary images are loaded before scrolling to the section, without having to load all images eagerly.