Skip to content
Snippets Groups Projects

WIP: lockscreen loading

Closed lowercasedonkey requested to merge lowercasedonkey/fc-pregmod:lockscreen into pregmod-master
1 unresolved thread

@svornost I love your loading screen, and I'm interested in making it a bit more dynamic. Is that even possible with the way .lock() works?

Merge request reports

Closed by lowercasedonkeylowercasedonkey 4 years ago (Jun 18, 2020 4:52am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Javascript is unfortunately really hard to deal with for this kind of thing.

      Basically what you need to do is register a timer callback, then return control to the browser. The browser will update the DOM based on your changes, and then call the callback.

      That means you'd need to break up the endweek process into chunks, each of which registers a callback to fire the next chunk, then updates the DOM, then returns control.

      It was completely impossible when Slave Assignment Report was still in Twine, but since it's been moved to DOM you should technically be able to do it (at least to update the status between assignment reports)...it's just super awkward.

      Probably the first step will be generating all the SAR DOM completely outside of twine...you'd want to cache it in a JS variable, then all the twine page should do is display it. Call SAR directly from EndWeek, filling the cache one chunk at a time, and then let the twine page just dump it all out.

      Edited by svornost
    • Yuck. Well, ty.

    • Yeah, my thought was that my time was probably better spent actually making endweek faster. If it didn't take an eternity to run, you wouldn't need so much status ;)

    • Please register or sign in to reply
Please register or sign in to reply
Loading