Decreasing delay of wait.gif
Page: 1
Author | Post |
---|---|
#1 Mon Jun 10, 2019 8:44 pm
|
|
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
|
#2 Tue Jun 11, 2019 2:04 am
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
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. |
#3 Wed Jun 12, 2019 7:15 pm
|
|
Member
Registered: Jun 2019
Posts: 3
|
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? |
#4 Wed Jun 12, 2019 7:56 pm
|
|
Administrator
Registered: Aug 2008
Posts: 3382
|
It's in the downloaded zip file, in the 'src' folder.
|
#5 Thu Jun 13, 2019 2:04 pm
|
|
Member
Registered: Jun 2019
Posts: 3
|
can't believe I never noticed that. Would've helped me a ton lol |
Page: 1