Skip to content

Adds longer loading screen #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 22, 2021
Merged

Conversation

mikesol
Copy link

@mikesol mikesol commented Sep 19, 2021

Description of the change

Keeps the loader up longer, lowering blank-screen time to less than 50ms.


Checklist:

  • Added the change to the changelog's "Unreleased" section with a reference to this PR (e.g. "- Made a change (#0 by @)")
  • Linked any existing issues or proposals that this pull request should close
  • Updated or added relevant documentation
  • Added a test for the contribution (if applicable)

@@ -85,7 +86,9 @@ _editor = SProxy
loader :: Loader
loader = makeLoader Config.loaderUrl

foreign import setupIFrame :: EffectFn1 (Object JS) Unit
type LoadCb = Effect Unit
type FailCb = Effect Unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think these type aliases are needed, but 🤷

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with them in this case because it can be otherwise difficult to tell which is the 'load' callback and which is the 'fail' callback. In other projects I also use records to help, ie. { fail :: Effect Unit, load :: Effect Unit }.

@JordanMartinez
Copy link
Contributor

@mikesol Could you add an entry to the changelog file?

@thomashoneyman thomashoneyman merged commit 815b502 into purescript:master Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants