Dynamic/lazy imports in Elm -
i lazily import definition of function in elm. use case browser, may have multiple views not need render initial page load, i'd defer network requests speed initial load. polymer prpl pattern, can lazy load definition of custom element. have looked around, haven't been able find suggest possible in elm.
any ideas appreciated. if none surface, i'll assume it's not possible.
i don't think possible in elm. dynamic imports specifically, intentionally impossible in language in order statically check them @ compile time.
you might able work out ports js program dynamically run or fetch other elm modules, giving lot of benefits you'd elm compiler.
Comments
Post a Comment