News for hackers. Stuff that matters.
Re:Show HN: LayerJS – A simple UI composition and navigation... by mrspeaker on Thursday May 03, 2018 @09:09AM (#16985622)
I really like this and have added it to my "dive into on the weekend" bucket. The catch phrase got me: "UI composition in pure HTML"... but a bit of my optimism left when I realized that the page wouldn't scroll (there's not even a scrollbar) without JavaScript. But still, it's better than a blank page (and the header had enough info to tempt me to white list it!).

This is just a get-off-my-lawn nitpick/feature request - because I think it looks really interesting, great work!

Re:Show HN: LayerJS – A simple UI composition and navigation... by EricLemieux on Thursday May 03, 2018 @09:26AM (#16985771)
On the body there is a `overflow: hidden` presumably to fix horizontal overflow. The selector causing this is `[lj-type="stage"]`, so the scrollbar not working without js might be an issue with the library, rather than just the marketing site.
Re:Show HN: LayerJS – A simple UI composition and navigation... by thomnah on Thursday May 03, 2018 @09:35AM (#16985858)
yes, layerJS needs a "Stage" where navigation can happen so the scrollable content will be inside that Stage. In this case the body is the stage and the page is a frame inside it. We are working on something where the stage length adapts to the frame length. Then the body will become as long as the full content and native scrolling would even work if there is no JS
Re:Show HN: LayerJS – A simple UI composition and navigation... by spankalee on Thursday May 03, 2018 @11:17AM (#16986770)
> "UI composition in pure HTML"

If you're looking for this in a standard form, follow the work being done on HTML modules and Declarative Custom Elements:

https://github.com/w3c/webcomponents/blob/gh-pages/proposals...

Together those will mean UI components without any JavaScript, that can depend on and load other UI components, etc.

Re:Show HN: LayerJS – A simple UI composition and navigation... by thomnah on Thursday May 03, 2018 @04:31PM (#16989651)
That probably a good way to follow in future...
Re:Show HN: LayerJS – A simple UI composition and navigation... by sventalborg on Thursday May 03, 2018 @09:19AM (#16985713)
Thanks! It's indeed using javascript ;-) It also has some support for "native scrolling" that could help a bit in a non-JS environment. Let me know if you have any feedback after the weekend (: