5 ms·
In France we have a Craiglist-like website. They recently moved to ReactJS : https://www.leboncoin.fr/ https://www.leboncoin.fr/ The website features didn't ch
by edhelas 6y ago
In France we have a Craiglist-like website. They recently moved to ReactJS : https://www.leboncoin.fr/ https://www.leboncoin.fr/
The website features didn't changed in between. It's basically a pagination + a search based on radius (so DB related) + name (so DB related) + categories (so DB related).
The complete website could be build in pure HTML + CSS and a bit of JS + Ajax to refresh parts of it.
But no, it's build with ReactJS, and it takes seconds to search a simple item on it.
To compare, just try the same search on the Dutch equivalent, MarktPlaats, https://www.marktplaats.nl/ https://www.marktplaats.nl/. The experience is way snappier, way lighter, the features are the same, and it's just HTML + CSS + a bit of JS.
We made a mistake with React/Vue/Angular. And we should really go back and stop using those frameworks.
- girishso 6y agoAgreed. SPAs only make sense for few websites like Trello, for most other websites plain dynamic HTML with dash of ajax here and there are much better.
- pier25 6y agoYou know it's possible to use any of the modern JS frameworks without SPA, right?
- julosflb 6y agoCould not agree more. It is barely usable now. The exact opposite of the original spirit. A complete failure.
- pier25 6y ago> And we should really go back and stop using those frameworks I think you are cherry picking. There are plenty of examples in the modern web of terrible React/etc implementations but that doesn't mean the approach in itself is bad.
- deanCommie 6y agoPlease name some.
- pier25 6y agoSome good React alternatives?
- mhoad 6y agoI’ve been plying around with lit-element lately and am finding it a much simpler experience overall. Likely a lot faster as well https://youtu.be/uCHZJy2n8Qs https://youtu.be/uCHZJy2n8Qs
- pier25 6y agoLit is excellent. It's also possible to use htm with Preact for developing without a bundler if your target users support ES6. https://github.com/developit/htm https://github.com/developit/htm
- kolanos 6y ago> There are plenty of examples in the modern web of terrible React/etc implementations but that doesn't mean the approach in itself is bad. If the creators of React can't get it right, then what hope is there?
- pier25 6y agoReact is bloated and slow, but there are dozens of frameworks other than React. https://krausest.github.io/js-framework-benchmark/current.html https://krausest.github.io/js-framework-benchmark/current.ht...
- amedvednikov 6y agoIt has 96 .js scripts on a single page.
- pyronite 6y agoThis used to be a bigger deal before HTTP/2 increased the number of concurrent requests to be virtually unlimited. Unless I'm missing something, it's "optimal" for a site to have many split files. If their JavaScript were 1 file, a change to a single character would mean the need to re-download every bit of JavaScript. Instead, with 96 files, it would mean 95 of them are still cached client-side and only 1 is need of downloading.
- thomaslord 6y agoIt looks to me like these scripts are asynchronously-loaded components that load only once they're needed. In this case it looks suspiciously like they're nested and each script download causes another script to be downloaded once the component renders, which would make HTTP/2 a moot point. I can even watch the requests pile up in the dev tools when they're cached, so my guess is if they dumped everything in one file (or even 10 files, just not 95) they'd get noticeably improved performance.
- fbnlsr 6y agoThank you for this post. I yell at my screen each time I have to use leboncoin. It was super ugly, but it did the job. Now it's super ugly, but it steals my focus at every opportunity, refreshes parts of the UI I'm about to click, or has select inputs that love to play hide and seek with my cursor. It's a UX nightmare. I must say their new payment system is nice. But boy do we have to suffer when looking for something to buy now.
- goatlover 6y agoWhat's the reason for redoing a website that provides the same functionality? Why use an SPA for basic website features?
- neop1x 6y agoThey made the same with local Czech eBay-like website https://www.aukro.cz/ https://www.aukro.cz/ . Previously it was a fast website. Transition to the webapp was painful, their filtering component was not working properly on mobile. It still takes several seconds until the initial white page switches to the rendered DOM. They lost many customers due to this painful transition. I think they fixed some of the problems (I know filtering component works ok now) but I basically stopped using it since that transition too.