Huge loading time (#metoo)
-
Hi,
don’t know when this issue first appeared, but Stripe started to make many http requests from all pages on website. This is not an isolated issue to a specific website, it causes problems on every single website where I’ve installed Stripe.
Stripe is loading 10 requests onhttps://r.stripe.com/0and then some other requests, in total it’s 21 (twentyone) requests, which is really too much. Those 10 requests are blocking the page rendering, each request takes between 520 to 750ms. They are all initiated at once due to http/2 but because of the number, they prevent to start loading scripts after it, so when you sum it up, Stripe slows down every single page load by roughly 700ms. I believe this is some kind of 3D secure with reCaptcha v3 behavior but this should be an optional feature. It shouldn’t load on every page except checkout and it shouldn’t load on product page unless there are Payment Request buttons enabled.The issue is the same as this one (where you deleted my response which I think was related and not spam, not even to OP):
https://wordpress.org/support/topic/huge-loading-time/
-
Hi @morvy! How’s it going today?
Stripe triggers 3DS automatically if required by a regulatory mandate such as Strong Customer Authentication. You can also use Radar rules or the API to control when to prompt customers to complete 3DS authentication, deciding for each user based on the desired parameters.
Here’s how you can use the Radar rules in your Dashboard:
https://stripe.com/docs/payments/3d-secure#three-ds-radar
You can also manually request 3DS through the Stripe API!
That being said, it’s hard to say if it’s being triggered by the 3DS, but I’d love to take a closer look at it, however, I’m going to need a few more details about your site.
Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
A link to any of your pages that are making those requests is appreciated too! 🙂
My very best,
Hi,
here it is although I don’t consider it relevant. I’m not sure if you understand the issue. It’s not that I have a problem with 3D secure triggering and asking customer for confirmation, but the scripts loaded by Stripe on every page load. See the screenshot attached:
https://ctrlv.sk/OIlB### WordPress Environment ### WordPress address (URL): https://localhost Site address (URL): https://localhost WC Version: 6.3.1 REST API Version: ✔ 6.3.1 WC Blocks Version: ✔ 6.9.0 Action Scheduler Version: ✔ 3.4.0 WC Admin Version: ✔ 3.2.1 Log Directory Writable: ✔ WP Version: 5.9.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: – Language: sk_SK External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.27 PHP Post Max Size: 512 MB PHP Time Limit: 600 PHP Max Input Vars: 5000 cURL Version: 7.47.0 OpenSSL/1.0.2g SUHOSIN Installed: – MySQL Version: 5.5.5-10.5.9-MariaDB-1:10.5.9+maria~focal-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.3.1 WC Database Prefix: ggawe_ Celková veľkosť databázy: 98.22MB Veľkosť údajov v databáze: 71.65MB Veľkosť indexu databázy: 26.57MB ggawe_woocommerce_sessions: Dáta: 1.02MB + Index: 0.02MB + Engine InnoDB ggawe_woocommerce_api_keys: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_woocommerce_attribute_taxonomies: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_woocommerce_downloadable_product_permissions: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB ggawe_woocommerce_order_items: Dáta: 0.17MB + Index: 0.06MB + Engine InnoDB ggawe_woocommerce_order_itemmeta: Dáta: 1.50MB + Index: 1.83MB + Engine InnoDB ggawe_woocommerce_tax_rates: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB ggawe_woocommerce_tax_rate_locations: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_woocommerce_shipping_zones: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_woocommerce_shipping_zone_locations: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_woocommerce_shipping_zone_methods: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_woocommerce_payment_tokens: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_woocommerce_payment_tokenmeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_woocommerce_log: Dáta: 3.02MB + Index: 0.16MB + Engine InnoDB ggawe_actionscheduler_actions: Dáta: 1.02MB + Index: 0.52MB + Engine InnoDB ggawe_actionscheduler_claims: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_actionscheduler_groups: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_actionscheduler_logs: Dáta: 0.50MB + Index: 0.28MB + Engine InnoDB ggawe_akeeba_common: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_ak_params: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_ak_profiles: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_ak_stats: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_ak_storage: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_ak_users: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_commentmeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_comments: Dáta: 0.14MB + Index: 0.09MB + Engine InnoDB ggawe_links: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_mailchimp_carts: Dáta: 0.06MB + Index: 0.00MB + Engine InnoDB ggawe_mailchimp_jobs: Dáta: 0.44MB + Index: 0.00MB + Engine InnoDB ggawe_options: Dáta: 5.09MB + Index: 0.14MB + Engine InnoDB ggawe_pmxe_exports: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxe_google_cats: Dáta: 0.39MB + Index: 0.00MB + Engine InnoDB ggawe_pmxe_posts: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxe_templates: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_files: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_hash: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_history: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_images: Dáta: 0.05MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_imports: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_posts: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_pmxi_templates: Dáta: 0.08MB + Index: 0.00MB + Engine InnoDB ggawe_postmeta: Dáta: 20.27MB + Index: 8.66MB + Engine InnoDB ggawe_posts: Dáta: 7.45MB + Index: 0.53MB + Engine InnoDB ggawe_redirection_404: Dáta: 1.02MB + Index: 0.17MB + Engine InnoDB ggawe_redirection_groups: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_redirection_items: Dáta: 0.02MB + Index: 0.09MB + Engine InnoDB ggawe_redirection_logs: Dáta: 1.48MB + Index: 0.23MB + Engine InnoDB ggawe_relevanssi: Dáta: 2.34MB + Index: 2.50MB + Engine InnoDB ggawe_relevanssi_log: Dáta: 0.23MB + Index: 0.13MB + Engine InnoDB ggawe_relevanssi_stopwords: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_shortpixel_folders: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_shortpixel_meta: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_shortpixel_queue: Dáta: 0.05MB + Index: 0.09MB + Engine InnoDB ggawe_termmeta: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_terms: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_term_relationships: Dáta: 0.05MB + Index: 0.02MB + Engine InnoDB ggawe_term_taxonomy: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_usermeta: Dáta: 0.25MB + Index: 0.16MB + Engine InnoDB ggawe_users: Dáta: 0.05MB + Index: 0.05MB + Engine InnoDB ggawe_wc_admin_notes: Dáta: 0.06MB + Index: 0.00MB + Engine InnoDB ggawe_wc_admin_note_actions: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wc_category_lookup: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wc_customer_lookup: Dáta: 0.08MB + Index: 0.03MB + Engine InnoDB ggawe_wc_download_log: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_wc_order_coupon_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_wc_order_product_lookup: Dáta: 0.09MB + Index: 0.06MB + Engine InnoDB ggawe_wc_order_stats: Dáta: 0.06MB + Index: 0.05MB + Engine InnoDB ggawe_wc_order_tax_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_wc_product_attributes_lookup: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_wc_product_meta_lookup: Dáta: 0.02MB + Index: 0.09MB + Engine InnoDB ggawe_wc_rate_limits: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wc_reserved_stock: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wc_tax_rate_classes: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wc_webhooks: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wfblockediplog: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wfblocks7: Dáta: 0.02MB + Index: 0.05MB + Engine InnoDB ggawe_wfconfig: Dáta: 1.34MB + Index: 0.00MB + Engine InnoDB ggawe_wfcrawlers: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wffilechanges: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wffilemods: Dáta: 9.52MB + Index: 0.00MB + Engine InnoDB ggawe_wfhits: Dáta: 0.11MB + Index: 0.05MB + Engine InnoDB ggawe_wfhoover: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wfissues: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB ggawe_wfknownfilelist: Dáta: 3.52MB + Index: 0.00MB + Engine InnoDB ggawe_wflivetraffichuman: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wflocs: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wflogins: Dáta: 0.06MB + Index: 0.03MB + Engine InnoDB ggawe_wfls_2fa_secrets: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_wfls_settings: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wfnotifications: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wfpendingissues: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB ggawe_wfreversecache: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wfsnipcache: Dáta: 0.02MB + Index: 0.05MB + Engine InnoDB ggawe_wfstatus: Dáta: 0.13MB + Index: 0.11MB + Engine InnoDB ggawe_wftrafficrates: Dáta: 0.02MB + Index: 0.00MB + Engine InnoDB ggawe_wpr_rucss_resources: Dáta: 0.02MB + Index: 0.06MB + Engine InnoDB ggawe_wpr_rucss_used_css: Dáta: 1.52MB + Index: 0.05MB + Engine InnoDB ggawe_wsal_metadata: Dáta: 5.25MB + Index: 8.34MB + Engine InnoDB ggawe_wsal_occurrences: Dáta: 0.47MB + Index: 0.38MB + Engine InnoDB ggawe_yoast_indexable: Dáta: 1.39MB + Index: 0.42MB + Engine InnoDB ggawe_yoast_indexable_hierarchy: Dáta: 0.06MB + Index: 0.05MB + Engine InnoDB ggawe_yoast_migrations: Dáta: 0.02MB + Index: 0.02MB + Engine InnoDB ggawe_yoast_primary_term: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ggawe_yoast_seo_links: Dáta: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### acf-field: 37 acf-field-group: 8 attachment: 334 custom_css: 1 mc4wp-form: 1 nav_menu_item: 15 page: 18 post: 12 postman_sent_mail: 250 product: 111 product_variation: 3 revision: 165 shop_coupon: 6 shop_order: 1585 shop_order_refund: 1 wp_global_styles: 1 wppopups: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (33) ### ManageWP - Worker: GoDaddy – 4.9.13 WooCommerce 123kurier.sk: 123kurier.sk – 1.0 WP Activity Log for Yoast SEO: WP White Security – 1.3.0 ACF PRO: Delicious Brains – 5.12.1 Discussions Tab for WooCommerce Products: Thanks to IT – 1.3.9 Google Tag Manager for WordPress: Thomas Geiger – 1.13.1 Enable Media Replace: ShortPixel – 3.6.3 Instant Indexing: Rank Math – 1.1.13 HappyFiles Pro: Codeer – 1.7 Loco Translate: Tim Whitlock – 2.6.1 Mailchimp for WooCommerce: Mailchimp – 2.6.2 Post SMTP: Post SMTP – 2.0.25 Redirection: John Godley – 5.2.3 Regenerate Thumbnails Advanced: ShortPixel – 2.4.0 Relevanssi: Mikko Saari – 4.15.1 ShortPixel Image Optimizer: ShortPixel – 4.22.9 Woo Doprava: toret.cz – 1.7.7 WooCommerce Stripe Gateway: WooCommerce – 6.3.0 Advanced Order Export For WooCommerce (Pro): AlgolPlus – 3.1.6 WooCommerce: Automattic – 6.3.1 Kybernaut ICO DIC: Karolína Vyskočilová – 1.6.7 Wordfence Security: Wordfence – 7.5.9 Yoast SEO: Tím Yoast – 18.5.1 WP Activity Log for WooCommerce: WP White Security – 1.4.1 WP All Export Pro: Soflyy – 1.7.5 WP All Import Pro: Soflyy – 4.7.2 WP Rocket | No Cache for Admins: WP Rocket Support Team – WP Rocket | No .htaccess: WP Rocket Support Team – WP Rocket: WP Media – 3.10.9 WP Activity Log: WP White Security – 4.4.1 WordPress Sentry: Alex Bouma – 4.16.0 WP All Export - WooCommerce Export Add-On Pro: Soflyy – 1.0.4 WP All Import - WooCommerce Import Add-On Pro: Soflyy – 3.3.0 ### Inactive Plugins (5) ### Akeeba Backup for WordPress: Akeeba Ltd – 7.6.1.1 Query Monitor: John Blackbourn – 3.8.2 Query Monitor Extend: Caleb Stauffer – 1.2 WooCommerce GP webpay: Webikon (Vladimir Alexandrov) – 1.1.2 WP Popups Lite: timersys – 2.1.4.5 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (2) ### akeeba-backup-coreupdate.php: – ManageWP - Worker Loader: GoDaddy – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space Thousand Separator: Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Slug pre obchod: #22 - /eshop/kategoria/ Košík: #7 - /eshop/kosik/ Pokladňa: #8 - /eshop/objednavka/ Môj účet: #9 - /moj-ucet/ Všeobecné obchodné podmienky: #32 - /obchodne-podmienky/ ### Theme ### Name: Custom Version: 1.4.3 Child Theme: ❌ – Ak upravujete WooCommerce na rodičovskej téme ktorú ste nevytvorili odporúčame použiť odvodenú tému. Prečítajte si návod Ako vytvoriť odvodenú tému. WooCommerce Support: ✔ ### Templates ### Overrides: custom/woocommerce/cart/cart-shipping.php custom/woocommerce/cart/cart-totals.php custom/woocommerce/cart/cart.php custom/woocommerce/cart/proceed-to-checkout-button.php custom/woocommerce/checkout/payment.php custom/woocommerce/emails/admin-new-order.php custom/woocommerce/emails/customer-processing-order.php custom/woocommerce/emails/email-order-details.php custom/woocommerce/emails/email-order-items.php custom/woocommerce/global/quantity-input.php custom/woocommerce/loop/no-products-found.php custom/woocommerce/single-product/related.php custom/woocommerce/single-product/tabs/description.php ### Action Scheduler ### Označiť ako vybavenú: 1 204 Oldest: 2022-03-10 13:56:06 +0100 Newest: 2022-04-09 13:51:05 +0200 Vybavuje sa: 1 Oldest: 2022-04-10 00:08:52 +0200 Newest: 2022-04-10 00:08:52 +0200 ### Status report information ### Generated at: 2022-04-10 00:08:58 +02:00Hello,
Thanks for sharing the system report. Everything seems to be OK there.
The issue is the same as this one (where you deleted my response which I think was related and not spam, not even to OP):
https://wordpress.org/support/topic/huge-loading-time/That was handled by a WordPress.org moderator, not by us. They will enforce the WordPress.org guidelines in all forums. Even if the issue might seem related, each user is required to open their own topic, so thanks for doing that.
As a next step in troubleshooting, I will make the exact same suggestion that Mirko made here.
I suggest you create a staging site if you don’t have one. Your host might provide that, but you can use WP Staging as an alternative.
Then, on the staging site:
- set the theme to Storefront
- disable all plugins except for WooCommerce and WooCommerce Stripe Gateway
- test the loading time again
Let us know how it goes.
Hi,
yes I have a development and a staging environment for some sites. But as I wrote, this is happening on all sites, with different plugins, different themes and it’s caused by Stripe (not saying it’s the plugin itself, could be a new logic behind official implementation, but this must be fixable somehow).
As you can see from the Woo status report, I do have Query Monitor and also some other helpers to identify issues on my side like non-optimal database queries and wp_remote_get etc. but Query Monitor is not relevant here. The issue is in http requests made by Stripe, clearly visible on screenshot I provided.
I’ve tried development site with Storefront (that’s actually the first step in debugging anyways), disabled all plugins except latest Woo + Stripe and the results are exactly the same..
Is there a way to disable these http calls? In version 5.4.1 there is no such issue (I know it’s older, but that’s just an example where this was not present)
Hi @morvy!
Searching, I found an article that might be related to the issue you have and could have a solution to it; please take a look at it for pointers:
https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2065
I hope this helps!
Hi @judagutor,
thanks for your time! I see the issue is there for several months, hopefully Stripe will do something about those scripts, it can’t stay like this because everyone is chasing good numbers in PSI and it sometimes slows down real user experience.
I will keep an eye on those github issues, thanks!
Hi @morvy
Hope you’ve subscribed to the Github thread. That way you’ll receive updates.
Hopefully, there’ll be a solution soon.
Thanks
The topic ‘Huge loading time (#metoo)’ is closed to new replies.