From 1de82b01eb8912cd84b54ba6a5777dec64b2e166 Mon Sep 17 00:00:00 2001 From: Theis Corfixen Date: Fri, 5 Aug 2016 08:36:34 +0200 Subject: [PATCH 1/2] Update timeout time A problem will occur when you are adding any success message and the quickly changing page, fx adding a product to cart and then going to another page before the 3 seconds pass. This is especially true when dealing with production mode sites with all cache enable. --- app/code/Magento/Customer/view/frontend/web/js/customer-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/view/frontend/web/js/customer-data.js b/app/code/Magento/Customer/view/frontend/web/js/customer-data.js index a3ef770fffdf4..32dab476b641f 100644 --- a/app/code/Magento/Customer/view/frontend/web/js/customer-data.js +++ b/app/code/Magento/Customer/view/frontend/web/js/customer-data.js @@ -105,7 +105,7 @@ define([ } }); $.cookieStorage.set('section_data_ids', newSectionDataIds); - }, 3000); + }, 50); }); return target; From a1686581484a46c43f27355029d5d539a8b90675 Mon Sep 17 00:00:00 2001 From: Theis Corfixen Date: Wed, 17 Aug 2016 14:00:37 +0200 Subject: [PATCH 2/2] Update customer-data.js Updated it a little I have experienced issues with having it be 50 MS aswell, this might need further refactoring --- app/code/Magento/Customer/view/frontend/web/js/customer-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Customer/view/frontend/web/js/customer-data.js b/app/code/Magento/Customer/view/frontend/web/js/customer-data.js index 32dab476b641f..c25b973f8d2c2 100644 --- a/app/code/Magento/Customer/view/frontend/web/js/customer-data.js +++ b/app/code/Magento/Customer/view/frontend/web/js/customer-data.js @@ -105,7 +105,7 @@ define([ } }); $.cookieStorage.set('section_data_ids', newSectionDataIds); - }, 50); + }, 250); }); return target;