Feels weird to seem to seriously represent your framework as being about size without including a comparison to preact - the obvious choice for a react developer looking to reduce their footprint. Preact claims 3kb on their site, and for a 3-4x savings you're going to need to be fairly compelling. I don't mind paying a modest cost for 10x or 100x improvements, but (call it Stockholm syndrome) I like react syntax
VanJS – A no-JSX framework based on vanilla JavaScript
31–40 of 178 posts
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#32The whole “small footprint” thing is always weird to me. I understand that lots of people really want to squeeze efficiency out of every single kb but Im struggling to see where this is helpful. A single image, a single pixel from the marketing team, the actual application code, the page, etc are all going to dwarf the framework.
If anything, I wish we could force the marketing team to compress their images better.
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#33This is unacceptably huge compared to the similarly named Vanilla JS. http://vanilla-js.com/
It took me a minute to get it.
0 bytes uncompressed, 25 bytes gzipped
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#34Why do people even reinvent this wheel every few months? Does the Anyone can build a "reactive" type framework by following tutorials online now, they're super in vogue. Is my cynicism here warranted, or am I just jaded from 20 years of watching pendulums swing left and right and watching the wheel be reinvented over and over?
So long as JavaScript is interpreted it matters a whole lot on mobile devices.
The amount of code delivered and executed on the device has a huge bearing on performance on lower end devices. Unless you're on some $1000+ phone and arguing from a place of privilege.
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#35after trying react for years I now switched to htmx with a simple backend, until there is a simpler to learn and use SPA(no SSR please) somewhere.
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#36XML gets all the hate for being overly verbose (and for good reason [1])
however with HTML syntax, which is almost the same, everybody seems to be just fine...
[1] XML is sooo nineties, the "modern" developer uses markdown. inb4 S-Expressions
(...yes I know)
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#37Re: VanJS – A no-JSX framework based on vanilla JavaScript
#38The whole “small footprint” thing is always weird to me. I understand that lots of people really want to squeeze efficiency out of every single kb but Im struggling to see where this is helpful. A single image, a single pixel from the marketing team, the actual application code, the page, etc are all going to dwarf the framework.
Your local mom-n-pop laundry place's website probably doesn't need these types of efficiencies, but if you're running a large ecommerce site, time-to-interactive is an important metric which can cost a lot of money.
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#39This is unacceptably huge compared to the similarly named Vanilla JS. http://vanilla-js.com/
Re: VanJS – A no-JSX framework based on vanilla JavaScript
#40People complaining about lack of JSX, HTML angle-brackets: I don't get it. XML gets all the hate for being overly verbose (and for good reason [1]) however with HTML syntax, which is almost the same, everybody seems to be just fine... [1] XML is sooo nineties, the "modern" developer uses markdown. inb4 S-Expressions (...yes I know)
Some people feel that XML is great to represent nested structures/trees, and that trying to do that with code is less readable.