Focal Point
Overcoming the overhead of IBI .js files...

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/9201071102

December 12, 2006, 02:46 PM
InsideTGT
Overcoming the overhead of IBI .js files...
I've found that the external javascript reference to ibigbl.js causes a simple page (in my example, 4 textboxes, 1 button and 1 frame) to double its time to load from approx. 3.5 seconds to approx. 7 seconds. The page in question is a search page which does no database access on initial load. The page was built with resource layout in v7.1.4.

A 7 second response for a page like this will be unacceptable for my users, who are used to sql server applications with sub-second response time. I'd like to ping this board on 2 fronts.

The first thing I'm curious about is whether or not the browser cache is being used. Each time I bring up the page, the temporary internet files folder will list ibigbl.js, but the expire time is always shown as 1 hour earlier than the current time, while the last accessed/last checked times show as the current time. I seem to get the same behavior regardless of how the "Check for newer versions of stored pages" option is set in IE. Does this past expiry date mean that ibigbl.js will always have to go back to the original source location, or could the cacheing still be happening? (and is there an easy way to prove it) I seem to get pretty consistent runtimes, which tells me that either cacheing is not happening, or it is not having significant impact on runtime.

The second thought is if cacheing isn't an issue, is there a documented workaround that can still allow fexes to be called and output displayed without requiring those huge .js files? I suspect that if resource layout is to be invoked, you probably would need a lot of that stuff, but once you're willing to work outside of resource layout, I wonder how much of that logic is really needed. Thanks.
December 12, 2006, 03:44 PM
Francis Mariani
I can't help you with either of your two queries - I don't use Resource Layout at all, and I don't have v7.1.4.

The question I would be asking is why does the JS file take so long to load, it's just a text file. I have an HTML page that uses a couple of functions in that file in WF 5.3.2 and the page loads instantaneously. Could the problem be caused by some configuration or security issue?

I have it included in my HTML file with this:

<script type=text/javascript language='Javascript' src='/ibi_html/javaassist/ibi/html/js/ibigbl.js'></script>



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server