|
Rank: Advanced Member Groups: Member
Joined: 10/14/2010 Posts: 19
|
I have a tab strip on a page with 5 user controls.
When the page loads the design of the tabs are very slow to load. I can see in the IE Status Bar eo_web.ashx being called with (in this case) 7 Objects Downloading.
I click on the next tab, and it starts again, slow to load, calling eo_web.ashx.
Now I user FireFox the tabs load quickly with no issue waiting for the design of the tab to render on the page. I click the next tab, I see some activity in the status window, but the next tab opens up and the design does not change like it does in IE. IE Repaints the design of each tab each time the page renders.
I have the EO tab in an AJAX panel, and it does perform a post back when each tab is clicked. Again the issue is the slow rendering time of the design of the tab in IE, where in FireFox is happens in an instant.
What could be the cause of this issue?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, There isn't a lot you can about for that. IE 8 and before are much slower than FireFox both on its JavaScript engine and its rendering engine. IE 9 improved significantly. The ultimate solution for such problem is to simplify the page. However there are a number of things you can try: 1. To use physical script files. The JavaScript files for EO.Web are embedded in the DLL. However you can separate them as physical files. See here for more details: http://doc.essentialobjects.com/library/1/installationanddeployment/deploy.aspx2. Use physical image. EO.Web contains a lot of embedded images. When you set an image property to a number (such as some_image_property=”0001234”), that points to a built-in image. You can change this to point to a real image path (for example, some_image_property=”images/something.gif”). You can find all the image files we use inside the installation folder in Images.zip; Both are based on the idea of taking certain requests off the ASP.NET pipe line and let IIS to handle it directly. It can speed up things a little bit because ASP.NET pipe line perform additional work which is usually unnecessary for JS file and image files. Hope this helps. Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 10/14/2010 Posts: 19
|
Thank you for the quick reply. I will give your suggestions a shot.
|
|
Rank: Advanced Member Groups: Member
Joined: 10/14/2010 Posts: 19
|
Changing the code to go after the images on the disk vs. the dynamic images worked! The control in IE 8 loads as fast as FireFox now.
Also, I noticed that I did not need to go to the ZIP file to get the images, the control itself has a feature to export the dynamic images - Very Slick ! !
Question: I changed the setting to allow the scripts to be written to disk. I did not see a boost from that, but I do have a question. After using the page for a few times there were 38 temporary script files on disk. Does your process of writing these to disk also clean up after itself and delete the older dynamic scripts that are no longer used?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Those script files are not "dynamic". They are all the script files our controls use and they stay there. : )
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 10/14/2010 Posts: 19
|
Great, thanks for the clarification.
Also, I found that when I included the images I got the error below on IE that runs on Citrix. On desktops it worked fine. When I turned on the features to save the scripts to disk Citrix IE Browsers started working.
Message: Object expected
Line: 6
Char: 24949
Code: 0
URI: http://[domain]/AQP/eo_web.ashx?id=1f46f517-054d-45ec-bce8-b9b083564755
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
From the controls point of view, as soon as you set the physical script files, you should not see eo_web.ashx at all. So if you are seeing eo_web.ashx, then physical script file is not correctly enabled (you should see a .js file).
We are not aware how Citrix would make a difference for this configuration. If it does make a difference (it does not suppose to), then you may want to contact Citrix to find out.
Thanks!
|
|