Is NodeBB fast?
-
One of our main priorities when we first started out was to build something stupidly quick. We hate loading screens as much as the next guy, and since we've really prioritized mobile we intend on building a solution that still works great on a small screen with limited resources.
Here's a comparison of our hand-rolled rendering engine (templates.js) vs another prominent player in this space (Ember.js):
http://jsfiddle.net/j3z4c/We've also seen about 10x better performance vs. handlebars as well (benchmarks available in the repo). All of this really adds up when you're rendering on your mobile device. Speed is everything and when you're on mobile you want the smoothest experience possible. We intend on keeping it up and trying to improve as much as we can when it comes to this aspect.
Just wanted to improve awareness of our rendering engine, and I hope to hear more feedback about what we have, what improvements can be made, etc. Thanks
Look at the NodeBB Templating Documentation for the basics or the templates.js repo for more advanced use cases.
-
The template.js demo isn't working for me anymore for some reason.
-
The jsfiddle?
-
Ah, just tried it in chrome and that didn't work out so well (was importing templates.js directly from the repo at raw.github.com, wtb free CDN services). Anyways remade another fiddle with templates.js pasted in the code itself: http://jsfiddle.net/j3z4c/
Don't know why FF didn't complain about the import while Chrome did.
EDIT: edited the original topic with working jsfiddle.
-
Chrome won't let you include it directly because it isn't served with the correct content-type (github doesn't want to be a CDN). You can use http://rawgit.com/ instead.
-
@meetdilip Yours definitely seems slower than it should be. I just tried and got 5.15 seconds, but each of your requests takes slightly longer. you're on digital ocean correct? Which server did you go for? Amsterdam 2 or New York?
My homepage is loading in 3.18 seconds, but each request is completing faster for me.
Getting socket.io for example took 900ms on your site, but only 163ms on mine.
-
The fade effect and loading bar drastically improve user perception of loading speed -- hat's off to whoever put that together.
So no useful feedback, but I appreciate learning about what's going on behind the scenes. For example, the threads about plugin contests are strangely exciting.
-
It is possible to include a partial template or make a template inheritance ?
You can do something like
<!-- IMPORT path/to/partial.tpl -->
-
-
@a_5mith said:
@meetdilip Yours definitely seems slower than it should be. I just tried and got 5.15 seconds, but each of your requests takes slightly longer. you're on digital ocean correct? Which server did you go for? Amsterdam 2 or New York?
My homepage is loading in 3.18 seconds, but each request is completing faster for me.
Getting socket.io for example took 900ms on your site, but only 163ms on mine.
Thanks @a_5mith . Could please tell me what I should do. I use default lavender theme with just colours changed. Is that the plugins that is slowing down forum ?