Okay this one is really odd to me.
I am working on a project for a client. It seems like it should be simple: they want their domain (I'll use example.com) to look something like this:
example.com/lectora
example.com/rise
Lectora is an elearning authoring platform that publishes the package in flat html, js, css.
Rise is an elearning authoring platform that publishes the package in flat html, js, css, but uses promises to pull the content from rise's own CDN, no matter where you host the flat files.
Both packages work fine in isolation, but when you put them side by side as per the above directory listing, something wild happens. They continue working fine, until you visit Rise, and THEN go back to Lectora. At this point, Lectora slows down to a crawl.
I've isolated the location of the issue, since, conveniently, lectora's js is not minified. It's a recursive graph iterator, intent on saving input to cookies. It just looks through all the elements of a page, and, if there's something to load or save, it does. Thing is, it works at appropriate speeds if you haven't visited Rise, but if you have, no matter where Rise exists on the domain, then it slows down.
I've checked the usual:
- There are no cookies set by Rise to conflict with Lectora (which saves to cookies)
- There are no local or session storage items saved by Rise to conflict
- I'm running with DevTools, and cache disabled (happens with cache too obv)
- Clearing all browser data resolves the issue (until you visit Rise again)
- Moving Rise to a different subdomain fixes the issue completely. You can visit either in any order with no slowdowns. The client does NOT want subdomains, so that's not an actual option for me.
- Incognito mode still reproduces issue (Though closing and reopening it clears the issue up since that clears incognito browser data)
My hope is I'm missing an obvious piece of data somewhere that gets cleared by clearing browser data, but I have no idea where to look at this point.