Advice Generator With JavaScript ES6 and API
Design comparison
Solution retrospective
Just completed this API challenge. This is actually my first time building something with API. I'm still not used to working with API. If anyone has useful resources that I can use to learn API faster, I will appreciate them. Thanks.
Please feel free to give feedback. Thanks.
Community feedback
- @elaineleungPosted over 2 years ago
Hi Olalekan, I like your spinning dice animation! I'm viewing this on Firefox and I'm not able to load the next advice. This is a known issue that's most likely due to caching, so if you want users on Firefox to be able to use your app also, try adding a header object in the fetch method, like this:
fetch("https://api.adviceslip.com/advice", { cache: 'no-cache' })
If you have Firefox, you can test it out before and after. Once again, great work building this 🙂
Marked as helpful0@OlaOluwalekanPosted over 2 years ago@elaineleung
Wow. thanks, Elaine! I don't know about this cache stuff. I'm actually new to API. I'll add it right away. Thanks once again. 👍
1
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