I’m working on rebuilding a new project for many reasons. Currently the project uses Marko. I’m investigating if it’s worth moving to svelte. I actually didn’t find a big difference between them. Does one of them has advantage on the other? Why the big hype around Svelte?
1
There are 1 best solutions below
Related Questions in SVELTE
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
Related Questions in MARKO
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In my view Svelte's popularity is based on the fact that:
I would go as far as saying that Svelte feels more like a natural extension to the browser platform while the big three tend to do "their own thing" (Angular being an "opinionated" framework, React obsessing over
fn(state) => view
and Vue sitting in between). The code savings (and "client battery friendliness") in Svelte are largely due to it not using a VDOM like React and Vue - that translates to less code downloaded and fewer CPU cycles burned. Also Svelte uses a compiler to generate code so it only includes what is actually needed - even before the bundler's tree-shaking gets to do its thing. Svelte uses a reactive update model instead (there are actually two systems: reactive assignments and stores)The downside to Svelte is that at this point in time its ecosystem is much smaller compared to any of the big three - but that is to be expected as it is a much younger tool.
Rich Harris has given some excellent talks about Svelte:
See also MDN: Getting started with Svelte
However just like React and Vue, Svelte's core design is based on CSR - Client Side Rendering. So while all of them have SSR solutions (Next.js - React, Nuxt.js - Vue, SvelteKit - formerly Sapper) these solutions tend to introduce some accidental complexity because SSR wasn't part of the initial design.
This is where Marko is different. It started as a server-based solution with a client-based aspect. Back in 2017 that client-based aspect was VDOM based. One of the advantages of Marko is that it supports Async Fragments - streaming of HTML from the server - out of the box. Now Marko plans to ditch the VDOM and replace it with fine grained reactivity to reduce the size of shipped code and improve performance on low-end client devices. Ryan Carniato of Solid JS joined the Marko Team in July 2020 to make that happen.
In that sense Marko is unique as it implements an approach that tries leverage the strengths of both parties involved in any web application - the server and the client - in an integrated manner. As such it seems ideally suited for the Islands Architecture something that needs a bit more work in Svelte (Elder.js and its backstory).
In terms of taglines: Marko is HTML re-imagined while Svelte is using a superset of HTML.