that's what I did at first, and I thought it was safer to always do it. especially now that I check the text content is different in the function too.

I'd like to keep it here and move it in the if only if we find it causes a performance problem, but when I scroll I don't see any problems right now... I can also try to profile if you want ?