Put all javascript in a standalone frame

W

Weiming Yin

Now I want to put all javascript(lots of) into a standalone frame name
"js" frame.
Some js classes in this frame.

When new a class instance, use should use
var c = new top.js.Clazz();

It's too slow when I first time access the website.
I want to ask if the solution is good?
If so, how can I improve the speed. And if not, what's the right way to
solve the proble.

Thanks

Weiming
 
V

VK

Weiming said:
Now I want to put all javascript(lots of) into a standalone frame name
"js" frame.
Some js classes in this frame.

When new a class instance, use should use
var c = new top.js.Clazz();

It's too slow when I first time access the website.
I want to ask if the solution is good?
If so, how can I improve the speed. And if not, what's the right way to
solve the proble.

Idea itself is OK, but this bird won't fly: because Internet Explorer
implements "same frame" constructor access restriction. So in order to
make it work cross-browser you'll have to change the scripts on both
sides: constructor call and the constructor itself.

See more at:
<http://groups.google.com/group/comp..._frm/thread/bcadfcbde01a0b77/565e6accfcd8cd1d>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top