easy way: chrome extension to popup a banner when the heap > limit
hard way: custom chrome build to block websites from allocating heap > limit