3 ms·
Our app (https://domestica.app/login https://domestica.app/login) is a pretty good (IMO) example of a blazing fast SPA. It uses Mithril and copious amounts of
by candiddevmike 6y ago
Our app (https://domestica.app/login https://domestica.app/login) is a pretty good (IMO) example of a blazing fast SPA. It uses Mithril and copious amounts of chunking to make the bundle size extremely small.
- vmception 6y agowhile breaking my back button nothing to do with the SPA of course
- candiddevmike 6y agoWhich part breaks your back button?
- vmception 6y agoon ios safari when I click that link, and then swipe back or press back, instead of showing me this hackernews thread it shows me that site again
- ceejayoz 6y agoOn my browser (Firefox, on OSX) it loads /loading then /login. When I go back, that takes me back to /loading, which forwards me to /login again immediately. Going back requires holding down the back button so I can skip that history record. Illustrated: https://imgur.com/a/zFaGw4a https://imgur.com/a/zFaGw4a (Quite a few sites screw this up. It's very annoying.)
- candiddevmike 6y agoThis is great, thank you for sharing. We primarily test in Chrome which doesn't seem to display this for whatever reason. Should be an easy fix to remove the history for the loading page.
- ceejayoz 6y agoFor what it's worth, the same happens in my Chrome. (Maybe you're logged in and don't get the behavior because of that?)
- candiddevmike 6y agoShould be fixed now if you want to try again :)
- mercer 6y agoI like how this whole thread highlights just one of the problems of SPA's. It's not exactly an endorsement!
- sebmellen 6y agoThis is one of the worst SPAs I've ever seen, simply because it causes an infinite redirect loop when clicking the back button and/or tampers with the browser history to make using the back button impossible.
- mattmanser 6y agoJust tried the app and immediately found the typical SPA bugs and quirks: - tried to add a recipe and nothing happened for so long (3-5 seconds) that I thought it was broken. Then suddenly the add recipe form finally appeared. Blazing fast! On your dev laptop maybe. - click payee, nothing happens. URL changes though. God I hate SPAs - adding an item to your shopping list causes a 'item added' popup to appear. Over the add item button so you can't add another item without dismissing the popup. It's probably only an issue on mobilr, but this popup is only necessary because it's a SPA - I'm on the 'create shopping category page'. Try and click the 3 dot thing in the top right. The new menu appears underneath the body of the page... - on the recipe page, you can click the M? button and it displays a link about 'markdown'. Click the link, it takes you to a blank page, which then redirects back to the homepage after a second or two. Bye-bye all your existing input - this is more of a bug, but if you try and use markdown in the directions text box for recipes, you can't. Start with a # and all your input just disappears (Firefox mobile) A few other comments I'd add: - Get a designer, or maybe buy an off the shelf design. That green is err, not nice. The design looks like a developer made it. I'm not great either but you can get a decent design, based on bootstrap or whatever, for like $50 and just adapt it. There are even free designsz like AdminLTE - why are the top corners of the input boxes rounded, but the bottom corners square? - Every time I go to the login screen, the logo pops in later than the rest of the screen. And then the Google login pops in even later. I'm on my mobile so can't check, but that screams bad browser cache settings on your images/static assets - why are the + buttons slightly elliptical instead of round? Looks odd I generally like the idea behind the app though, though won't use it as it's all in $s. I wonder how much traction you're going to get though as it's going to be really intensive setting it all up
- candiddevmike 6y agoThank you for the feedback! We'll take a look at these, especially the recipe form. For the shopping list alert issue, you should be able to dismiss the alert but I see where you're coming from. Regarding the colors, you can set whatever color scheme you want under your account settings. The images have always given us trouble, they should be cached but the painting seems like it occurs after load for some reason (I think it has to do with auto height/width?). It's annoying, and will be prioritized soon.
- sharatvir 6y agoThis page breaks the back button on mobile safari and Firefox
- randompwd 6y agoJust loaded the initial page;no other action - 105 requests, 4 MB(2 on the wire). Was your comment just an attempt at some growth hacking?