3 ms·
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
by mrspeaker 8y ago
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!
- sventalborg 8y agoThanks! 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 (:
- EricLemieux 8y agoOn 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.
- thomnah 8y agoyes, 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
- flyingamarnath 8y agoCorrect I agreed with you
- spankalee 8y ago> "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/Declarative-Custom-Elements-Strawman.md 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.
- thomnah 8y agoThat probably a good way to follow in future...