PDA

View Full Version : an odd question



kyousuke
6 Sep 2011, 11:00 PM
I test in IE8 and EXTJS version is 4. I refreshed the IE8 some times and looked into the taskmgr(window), the memory of the IE8 has gone up about 400M. Could anybody help me to test this?


frame.html
<frameset rows="80, *">
<frame id="top" src="top.html">
<frameset cols="200, *">
<frame id="left" src="left.html">
<frame id="main" src="main.html">
</frameset>
</frameset>
top.html main.html left.html are the same code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="../resources/css/ext-all.css">
<script src="../ext-all.js"></script>
<script>
Ext.onReady(function() {
var p = Ext.create("Ext.panel.Panel", {
region: "center",
title: "AAA",
width: "100%",
height: "100%"
});
Ext.create("Ext.container.Viewport", {
renderTo: Ext.getBody(),
layout: "border",
items: [p]
});
});
</script>
</head>
<body>
</body>
</html>

jay@moduscreate.com
7 Sep 2011, 8:38 AM
Why are you using border layout when all you have is the center region? use fit.


That said, you are loading multiple copies of Ext JS in these frames. totally not usable and not suggested at all.

arthurakay
7 Sep 2011, 11:26 AM
You're using frames??? What decade are we in?

jay@moduscreate.com
7 Sep 2011, 11:28 AM
You're using frames??? What decade are we in?

Some shops rely on them. They have acceptable uses (in some rare cases). However, to load > 1 copy of Ext JS in a browser is just madness.

arthurakay
7 Sep 2011, 12:12 PM
I'll take your word for it... I've yet to see an acceptable use for one, with the exception (maybe) of an iframe. But that's just my 2 cents B)

jay@moduscreate.com
7 Sep 2011, 12:41 PM
IMHO, the use is in legacy apps ;)

mankz
7 Sep 2011, 1:54 PM
Just tried running it but couldn't see any obvious leaks. Tried inspecting it in sIEve? http://home.orange.nl/jsrosman/