Consider removing Stripe JS library from unnecessary admin routes

Created on 4 December 2021, almost 4 years ago
Updated 18 August 2025, about 1 month ago

Problem/Motivation

While working in an airplane, I noticed pages were loading slowly despite just running Drupal locally. Turns out the Delta wifi was slow, and it was taking a while for the Stripe JS to load on a page refresh. I'm curious to understand why we're adding this on every page build.

I understand for fraud prevention measures or general purpose functions, sometimes payment vendor libraries are intended to be loaded on every page. That seems unnecessary for admin routes where we aren't explicitly interacting with the library, though.

Proposed resolution

Not sure yet, requires further research.

πŸ“Œ Task
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024