Currently the movie table is empty by default/on load, before the database rows are fetched and rows are inserted.
This means the table shrinks/expands on load and it's unwanted behaviour.
Fix this by inserting temporary rows to the table, which are then replaced once the data is fetched from the API.
As javascript is loaded in after HTML, it might be best to insert the rows directly in the index.php file.
Currently the movie table is empty by default/on load, before the database rows are fetched and rows are inserted.
This means the table shrinks/expands on load and it's unwanted behaviour. Fix this by inserting temporary rows to the table, which are then replaced once the data is fetched from the API.
As javascript is loaded in after HTML, it might be best to insert the rows directly in the index.php file.