<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 9/27/10 3:30 PM, Rob Evans wrote:
<blockquote
cite="mid:AANLkTi=fDcHy+c7oYa+pB-FnJDHXjEu+jLfzurAQUGJJ@mail.gmail.com"
type="cite">
<p>I think one of the most useful things that a js script could know
is how much memory is available and how much the current page is using.
I'm writing a js game engine and knowing how much I can safely site in
memory would be incredibly useful!</p>
On 27 Sep 2010 23:19, "timeless" <<a moz-do-not-send="true"
href="mailto:timeless@gmail.com">timeless@gmail.com</a>> wrote:<br>
<blockquote type="cite"><br>
what exactly do you intend to do if you get such a signal?<br>
<br>
In general, this is mostly a user problem. There are two basic cases:<br>
1. user has one constrained device with one browser accessing a single<br>
web site (yours) with no other open applications.<br>
2. user has a device with multiple open windows (various sites,<br>
various applications).<br>
<br>
</blockquote>
</blockquote>
<br>
I'm just talking about the bare minimum:<br>
sending a simple event window.dispatchEvent(lowmemory) <br>
No details / guarantees. It's just a hint.<br>
<br>
Mozilla has made efforts to handle low memory issues (allocation errors
or otherwise)<br>
mainly in the handling of image resources. I'd like to see the practice
become<br>
more widespread.<br>
<br>
<br>
<br>
</body>
</html>