I am currently in the process of converting a template to Angular that utilizes HTML, CSS, Bootstrap, JavaScript, and other similar technologies.
Within the template, there is a loader function with a GIF animation embedded within it.
Interestingly, upon my first visit to the page, the loader loads but fails to open the actual content. However, on subsequent visits, the loader doesn't load, allowing the page to display properly.
I am puzzled by this behavior and suspect that the issue may be related to the loading of Bootstrap's JS files. How can I ensure that these files are loaded correctly?
All external files have been placed in the assets folder and specified in the angular.json file as well.
The specific problem arises when navigating from the index.html page to the about.html page - the functionality breaks on the second page. Why does this inconsistently occur only on the first visit?
On first visit to about.html: https://i.stack.imgur.com/aYb6b.png
On second visit to about.html: https://i.stack.imgur.com/Vg3Db.png
I have attempted various troubleshooting steps without success thus far.
If you have insights or suggestions, feel free to contribute via a pull request on the GitHub repository below:
https://github.com/muhammad-abdulloh/4UHOST
You can also access my index component, about component, and the Angular json file for further analysis:
https://stackblitz.com/edit/angular-tt9cmt?file=src/about.component.html