@@ -19,7 +19,6 @@ The project is initialized with npx and create-react-app. Alternatively we could
### Ajax
As only a simple get request is necessary for this project, we have used the standard fetch() function from JavaScript. Every time a new page is loaded, a new get request is sent to the poetryDB with an updated author argument. Alternatively, we could have fetched all poems at once, and then displayed them later on. Our solution requires less storage on the user side, but in turn results in many more API requests to the DB. On a larger scaled app, one would have to consider which drawback is worse.
TODO legg inn om lyd
### Web Storage
Sessionstorage has been used to saved the selected options for each exhibition piece. Upon ending a session, each exhibition piece is reset to the standard value. Localstorage has been used to save favorite artworks. These persist upon different sessions, and thus you can easily navigate to your favorite pages. The feature of each storage type could have been swapped, though we felt this made the most sense. Favorites are typically something you want to store permanently, while display options can be temporary.