3 ms·
So when I want to browse your website on my phone with a limited data plan, I have to download an entire database client and database, as well as any of your ot
by voidUpdate 2y ago
So when I want to browse your website on my phone with a limited data plan, I have to download an entire database client and database, as well as any of your other huge JS libraries?
- wruza 2y agoI'd prefer that to page reloads, lost focus, scroll position and any input between clicking on a checkbox and receiving a response. Bonus points if I only have to download a db-diff next time, compared to downloading 5x db worth through POST /get-products?<filters>&page=<n> in every e-shopping session. Rarely a client-facing business database exceeds your average youtube cat video in size (assuming pics stored as urls).
- threeseed 2y agoWhat year was this comment written ? Most web apps these days are single page applications which don't require page reloads for every UI interaction.
- wruza 2y agoSadly the current one. Most web apps that have a backend database do all of the aforementioned. See e.g. https://amazon.com https://amazon.com Also, https://www.ebay.com/b/Digital-Cameras/31388/bn_779 https://www.ebay.com/b/Digital-Cameras/31388/bn_779 -- try choosing a brand https://www.bestbuy.com/site/video-games/video-games-accessories/abcat0715000.c?id=abcat0715000 https://www.bestbuy.com/site/video-games/video-games-accesso... -- only loses scroll, probably a winner https://www.newegg.com/p/pl?N=50001157%20100007671%20601393085%20601351801%20601298157%20601304866%20600565702%20600095610%20600005864%20600005862%20600005860%20600005851%20600005846%20600005857 https://www.newegg.com/p/pl?N=50001157%20100007671%206013930... -- uses "Apply" button, out of competition, but still better https://www.levi.com/US/en_US/sale/mens-sale/c/levi_clothing_men_sale_us https://www.levi.com/US/en_US/sale/mens-sale/c/levi_clothing... -- a winner of the "wtf is going on after I click my size" category
- vundercind 2y agoTrue. Only the fast ones do full page reloads now.
- afavour 2y agoIf it’s an app you use regularly that trade off could easily be worth it.
- jampekka 2y agoAlso all the code and data can be easily cached with e.g. Service Workers, so it will be downloaded only once.
- voidUpdate 2y agoIf it's an app, you're not in the browser anymore anyway, so you don have to worry about this browser wasm. You can store data locally anyway and don't have to pull it from the sever
- afavour 2y ago> If it's an app, you're not in the browser anymore anyway Webapps would beg to differ
- deleted 2y ago[deleted]
- localfirst 2y agoTen years ago your concern might be valid but in 2024, given that most people in the developed economies have ample amount of 4g/5g data plans with generous RAM/storage on their mobile phones, it makes more sense to just send them the whole DB once. This is the same spirit as Electron vs native. Of course native uses less ram and is efficient but its not noticeable by the end user (because they dont care how its built). So we let developers write desktop apps in HTML/JS and end users do not notice usually until they open up task manager We have abundance of data, memory, storage that continually drops in cost. It makes a lot of sense to simply download the DB once and then access it locally with optional syncing. This is the future because we can't count on mobile phones to continuously maintain connectivity especially with limited data plans. Far better to simply allocate % of your fixed data plan and decide which local first app to install on your phone.
- voidUpdate 2y agoI live in a 4g/5g country (with 5g disabled on my phone because it seems to perform worse than 4g), with a 2gb/month data plan. I've usually stayed inside my data budget, but I'm cutting it a little close this month and I've blown past it a couple of times when I've forgotten to switch back to wifi. Sure, I live in a country where I can buy infinite data, but I don't see the point when I rarely use more than 2gb, and a 2gb plan is cheaper
- jimberlage 2y agoI think their tool is designed for working professionals on laptops - seems like analysts doing traditional business insights reporting. Perhaps there's a world where that target audience is using their phones, but I doubt it's a use case they're too concerned with. I would be worried about this approach for something that doesn't need to expose a SQL interface though! It's not the right fit for most webapps.