This website contains age-restricted materials including nudity and explicit depictions of sexual activity.
By entering, you affirm that you are at least 18 years of age or the age of majority in the jurisdiction you are accessing the website from and you consent to viewing sexually explicit content.
Are single page apps considered one page?
I’d say no since it is how pages are loaded and those likely interpreting the law including the user see a visual page change / transition it it would be considered another page since they’d likely not understand what SPA is.
More generally, are single page apps legal? And if yes, why?
Because they are useful and provide a good experience to most users