It’s Safari. Chrome on a Samsung tablet is miles better in that respect.That however is not a RAM issue since my wife‘s M4 iPad with 16GB RAM does it, too. It’s just how iOS/iPad OS is ‚designed‘.
You‘ll have to switch operating systems and hope they’ll do better (hint: they mostly don’t).