We created a single-page company website that utilizes three different stylesheets connected to the index.html. By clicking a button, users can switch between these stylesheets resulting in changes to colors, images, and text colors.
However, Issue 1: The button only functions properly on the second click, skipping two stylesheets before applying the third one directly.
Issue 2: There is a delay in loading the stylesheets intermittently, causing the page to momentarily display in black and white with no styling before the correct stylesheet kicks in.
Is there a solution to these two problems to ensure smooth functionality?
Any assistance would be greatly appreciated. Thank you.
This is the complete code:
https://github.com/Rachaeljessicaabraham/Rachaeljessicaabraham-github.io