This PR attempts to fix the original preload fix in PR # 35. The new commits uses a combination of useLayoutEffect and javascript Image objects to solve this problem.
Expected Behaviors:
[x] Apply useLayoutEffect() to ensure that images are loaded before mounting the component.
[x] A spinner should be displayed on the page if images are not loaded.
This PR attempts to fix the original preload fix in PR # 35. The new commits uses a combination of useLayoutEffect and javascript Image objects to solve this problem.
Expected Behaviors: