Design comparison
Solution retrospective
Thanks for checking out my solution!
It took me a while to get it deployed to heroku.. finally got it figured out though!
I really just used node to create an initial quote when the app is loaded. After that it's all client side. Works okay, my first time using fetch().
Community feedback
- @shivaprakash-sudoPosted over 2 years ago
Hello PaletteJack,
The site looks good and is responsive, but it doesn't work in Firefox after the initial advice is loaded. This is because of the Advice API caching the data when we fetch it, this can be avoided by putting
{ cache: "no-cache" }
as a second argument inside thefetch
method.Regarding the initial advice, you don't need to use back-end for that, you can do it directly on client side using the same
getAdvice
method onwindow.onload
function.You did good for your first time, keep up the spirit and good luck on your next projects.
Marked as helpful1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord