Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Advice generator

@ComanderPotato

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


First time using an API on my own, not really sure what all of it means but I kind of understand it.

Community feedback

Elaine 11,420

@elaineleung

Posted

Hi Tom, well done on this challenge, everything looks good 🙂

Just wanted to let you know, I use Firefox and I'm not able to view past the second loaded advice because of an issue that's commonly seen on Firefox, which is that the next advice doesn't load due to caching. All you just need to add a header object in the fetch method:

fetch("https://api.adviceslip.com/advice", { cache: 'no-cache' })

You can test it out and see as well!

Marked as helpful

0

@ComanderPotato

Posted

@elaineleung Oh okay thanks, and those are the options for the function yes? Do you have any links to resources regarding them? Or would looking up fetch() on w3schools/mdn be the best bet?

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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