The cause seems to be that isPreferredLanguage indirectly looks up TranslationsMixin.translatable_languages, which uses preferred_or_request_languages from the Launchpad helpers, which in turn queries all of the languages set as the user's preferred languages or accepted by the http[s] request.
Since this is browser code, we can just make translatable_languages a @cachedproperty. It doesn't break any pagetests, and it looks like it'd knock >10 seconds off each of the timed-out requests.
The cause seems to be that isPreferredLanguage indirectly looks up TranslationsMix in.translatable _languages, which uses preferred_ or_request_ languages from the Launchpad helpers, which in turn queries all of the languages set as the user's preferred languages or accepted by the http[s] request.
Since this is browser code, we can just make translatable_ languages a @cachedproperty. It doesn't break any pagetests, and it looks like it'd knock >10 seconds off each of the timed-out requests.