Mar 22, 2012, 8:49 PM
Desktop : Good practice
Hi!
I develop a desktop application with several windows.
Each windows is associated to an aspx page.
I create the window dynamically specifying the source of the frame to the good aspx page.
In each window (aspx file) I include some javascript file and some of the window use the same js files.
It works fine but I want to know if it is the best way to manage windows.
If I debug (in client side) my web app, I see all the js files loaded in the browser.
If I do a close (action = close) on the window, I still view the js file in memory in the browser.
I feel that each time I open a window, it reload the js files in memory (duplication of the files) event it is used in cache.
Another way could be to load ALL the js files in the main desktop window and do a reference from each child window ?
For you, is it correct or not ?
What should I do to optimize ?
Thanks.
I develop a desktop application with several windows.
Each windows is associated to an aspx page.
I create the window dynamically specifying the source of the frame to the good aspx page.
In each window (aspx file) I include some javascript file and some of the window use the same js files.
It works fine but I want to know if it is the best way to manage windows.
If I debug (in client side) my web app, I see all the js files loaded in the browser.
If I do a close (action = close) on the window, I still view the js file in memory in the browser.
I feel that each time I open a window, it reload the js files in memory (duplication of the files) event it is used in cache.
Another way could be to load ALL the js files in the main desktop window and do a reference from each child window ?
For you, is it correct or not ?
What should I do to optimize ?
Thanks.