perf: defer heavy modules and add performance baselines
Lazy-load Stripe and the chat reply animation, remove the unused Lottie runtime, and add repeatable bundle and Web Vitals baseline tooling.
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
} from "@/stores/payment/payment-context";
|
||||
import { Logger } from "@/utils";
|
||||
|
||||
import { StripePaymentDialog } from "../subscription/components/stripe-payment-dialog";
|
||||
import { LazyStripePaymentDialog } from "../subscription/components/lazy-stripe-payment-dialog";
|
||||
import { stripePaymentDialogStyles as dialogStyles } from "../subscription/components/stripe-payment-dialog.styles";
|
||||
import styles from "./tip-screen.module.css";
|
||||
|
||||
@@ -74,7 +74,7 @@ export function TipCheckoutButton({
|
||||
/>
|
||||
) : null}
|
||||
{paymentLaunch.shouldShowStripeDialog && paymentLaunch.stripeClientSecret ? (
|
||||
<StripePaymentDialog
|
||||
<LazyStripePaymentDialog
|
||||
clientSecret={paymentLaunch.stripeClientSecret}
|
||||
returnPath={returnPath}
|
||||
onClose={paymentLaunch.handleStripeClose}
|
||||
|
||||
Reference in New Issue
Block a user