HNHacker News
TopNewBestAskShowJobs

zamjs

5 karma · joined December 26, 2017

submissionscomments
zamjs··on [dead]
Thank you so much for your feedback!

The documentation is a work in progress.

The ajax function is a bit of a mess and needs to be reworked. Fetch is most likely the better option unless Promises are incorporated.

zamjs··on Ditch React. Ditch Angular. Go Vanilla with Zam
I see your points.

"Like, is it faster because it uses native dom selection functions?"

Yes, this library is fast because it's based around native dom functions.

"If that's not the case, what kind of groundbreaking work did you do here to achieve the impressive looking benchmarks on the Github page?"

I'm not claiming there's anything "groundbreaking" about this library. I made it to encourage vanillajs development, which I believe to be important.

zamjs··on Ditch React. Ditch Angular. Go Vanilla with Zam
Thanks for the catch!! Fixed it.

I had to explicitly set "left: 0"

zamjs··on Ditch React. Ditch Angular. Go Vanilla with Zam
From a performance stand point -- does it really matter?

You are right. fadeIn and fadeOut should have some optional callback for completion.

zamjs··on Ditch React. Ditch Angular. Go Vanilla with Zam
Zam's methods are overall document methods. For example: .each() and .addStyle()

Things get a little more complex with some of the methods though. For example: .css()

Fetch is only faster on certain browsers. I'm thinking about incorporating it in the future.