memory-stats.js | minimal monitor for JS Heap Size via performance.memory
kandi X-RAY | memory-stats.js Summary
kandi X-RAY | memory-stats.js Summary
minimal monitor for JS Heap Size via performance.memory
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of memory-stats.js
memory-stats.js Key Features
memory-stats.js Examples and Code Snippets
Community Discussions
Trending Discussions on memory-stats.js
QUESTION
The issue I'm seeing is that when you load Stripe Checkout into a page using their canonical "Custom" guide, configure it, and then open and close it a few times, the browser memory usage continually jumps. It sometimes, sorta gets released a little, but the residual always grows. And on a long lived page/SPA, eventually things crawl.
- Start Google Chrome with
--enable-precise-memory-info
flag (issue happens with or without this flag) - Copy the "Custom" example on their site: https://stripe.com/docs/checkout#integration-custom (or use your own setup, the results are the same).
- Click the 'Purchase' button (or trigger your
stripeInstance.open(cfg)
), fiddle with the popup, close. - Repeat step 3, watch memory gradually
You can watch memory with memory-stats.js or just by running in (Chrome) console:
...ANSWER
Answered 2018-Jan-26 at 21:18It is not possible to know for sure, but they could be retaining some data that it is never freed or it could be chrome's java script engine that try to have everything cached for the future. You should try to leave the page alone some time and see if the cache memory goes down.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install memory-stats.js
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page