View Full Version : Only using splitbar and making it faster
shades
10-22-2006, 07:09 PM
First, great site. I have a working example of a single vertical splitbar (header, nav, content) with a non-collapse navbar and everything works.
The problem is that it takes a few seconds to load. I've seen other splitter code that loads instanteously after clearing out the cache. I stripped down my example to around 120 KB (mostly JS), but it still takes some time (~2 sec) to load the web app. If I just need to use the splitbar functionality, is it possible to make the page load faster. Perhaps just one small js file that does everything I need?
jack.slocum
10-22-2006, 10:04 PM
Do you mean loading all the JS files? You can improve that performance by combining them into a single file. You can also improve performance by sending expiration headers with your script files. For example, only check for a new version once a week or something like that. I don't do that on my site because things are always changing so frequently.
If you mean initialization time, I would say something is wrong because it should all initialize after the first load very quickly. I have pages that initialize 2 grids, 5 splitbars, nested borderlayouts and lot's of content all in under 500 milliseconds.
shades
10-22-2006, 10:57 PM
Yes, I mean the first time the page is loaded. Nothing in cache. It takes a few seconds to load everything. It takes around 0.5 seconds thereafter.
Is there any way to improve the initial "few seconds" loading? I'm not saying it's terrible, but I've seen other sites with a different JS splitter load almost instaneously from the start. Even when you combine the js into a single file, the load time is significant. Is there any way to improve the times because it looks like I'm loading things that I don't really need. I hope that makes sense.
jack.slocum
10-23-2006, 05:37 PM
The splitter only relies on yui-ext-core.js. Core relies on yahoo.js, dom.js and event.js. That should lighten your load.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.