Handles the loading of external data sources required by the application.
This module is responsible for asynchronously fetching and parsing JSON data
related to films and series. It ensures that the data is properly retrieved
and made available for use elsewhere in the application, and handles error
reporting in case of failure.
- Source:
Methods
(async, inner) loadData()
Loads film and series data from local JSON files.
Fetches data from 'data/films_data.json' and 'data/series_data.json',
parses the responses into JavaScript objects, and assigns them to
the corresponding global variables. Displays an error message if the
loading process fails.
- Source: