Decreasing delay of wait.gif

Page: 1

Author Post
Member
Registered: Jun 2019
Posts: 3
Hi there, I've been trying to make the wait.gif show instantly after clicking a floatbox link. Does anyone know how to accomplish this? Based on some research, I've gathered that the wait.gif is called upon by .fbx.fbSlowLoad, apparently after 1.8 seconds. I would like it to show instantly, to be used as a loading animation. Any help is greatly appreciated, thanks :D
Administrator
Registered: Aug 2008
Posts: 3378
1.777 seconds actually.

There is no settable option for this delay, so if it is to be changed it must be changed in the code.

In the source for core.js, the relevant line is
setTimer( slowLoader, 1777, TIMER_slow, boxTimeouts );
In the minified core.js this line appears as
Fo(o,1777,2,ze),


Change that '1777' to something like '77' to have the wait gif appear almost instantaneously. Don't go too close to zero as doing so may introduce some conflict in the loading sequence.

This applies to the current release, 8.2.6.
Member
Registered: Jun 2019
Posts: 3
admin wrote
1.777 seconds actually.

There is no settable option for this delay, so if it is to be changed it must be changed in the code.

In the source for core.js, the relevant line is
setTimer( slowLoader, 1777, TIMER_slow, boxTimeouts );
In the minified core.js this line appears as
Fo(o,1777,2,ze),


Change that '1777' to something like '77' to have the wait gif appear almost instantaneously. Don't go too close to zero as doing so may introduce some conflict in the loading sequence.

This applies to the current release, 8.2.6.

That worked perfectly, I can't thank you enough.
By the way, where can I find the source code, if it's not too much to ask?
Administrator
Registered: Aug 2008
Posts: 3378
It's in the downloaded zip file, in the 'src' folder.
Member
Registered: Jun 2019
Posts: 3
admin wrote
It's in the downloaded zip file, in the 'src' folder.

:oops: can't believe I never noticed that. Would've helped me a ton lol

Page: 1