|
|
|
|
|
by jzwinck
3071 days ago
|
|
Once a widget has run say 100 million instructions, suspend it if it comes from a different domain than the main page, mark it visually and provide a button on it to enable high CPU usage. We used to do something like that with Flash: make the user click it if they want it to run. |
|
Hopefully a more sophisticated solution which requires or measures GPU usage to UX updates may be better.
WebGL games and heavy animations can run on the GPU, but if they aren't updating the interface, perhaps that can be used to find something nefarious