Advice generator

Solution retrospective
This refused to work in firefox for whatever reason. And just kept fetching the same advice everytime. It worked fine in both chrome and edge.
What's causing it to have issues in firefox?
I also noticed that it doesn't align properly vertically in firefox either. Any reason for that?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @wendyhamel
Nice work! Looks great!
The problem with firefox is that it caches the fetch. You can prevent this by adding:
, {cache: 'no-cache'}
after the link in your fetch request. You can read more about this in the MDN docs about Fetch()I did not see the alignment problem you mentioned. So I don't know what caused that in your testing.
I noticed your class
advice-id
. You might want the re-think the naming of a class with id. ; - )Keep coding!
Marked as helpful
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