> non-essential functions
Are you sure you're not talking about cookie consent laws? (The reason "non-essential" is a qualifier for cookies is that, e.g., a log in session will require the use of cookies but is also considered "essential".)
(Please also understand the appeal to authority in "is illegal in many places". That's aside from the point I bring up.)