Sorry if this is an offtopic direction, but I (as a newcomer) would also
like Discourse best. It has an e-mail interface, very good UI, spam
controls, trust system, community moderation tools, healthy development
speed, and could be installed under a custom domain name (like
discuss.elm-lang.or
Now that I think of it, this is even more tricky, right? Because the Elm
runtime juggles the DOM nodes as it sees fit, easily making them go out of
sync with the Echo.js library. So what should I do to make images
lazy-load? Thank you,
T.
--
You received this message because you are subscribe
Hello!
I have an app that’s heavy on images and need to load the images only as
they become visible. I would like to use a simple drop-in JavaScript
library to do that:
https://github.com/toddmotto/echo
The library is loaded like this:
echo.init({…});
The initialization code finds all
Wow, thank you very much for the responses! I went with the tuple pattern
match trick for the moment, it’s better than what I had before.
But I would still be interested in splitting the app in two parts. It feels
wrong to mix the loading logic with the display logic in a single function.
Ideal
Hello!
I have an app that loads some JSON from a website and displays it. The
state of the app could be modelled a bit like this:
type State =
Loading |
Displaying Stuff
type alias Stuff = { … }
Now I am writing the update function to handle messages:
update : Msg -> State -> (State,
Thank you very much, the port approach worked well for me.
T.
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to elm-discuss+unsubscr...@googlegroups.com.
For more
Hello!
I have a text field. When the text field value is committed, I want to
process that value, construct a URL from it and navigate away from the app
to this URL. How do I do that?
This Stack Overflow question asks about the same thing:
http://stackoverflow.com/questions/40929154/cmd-to-sim