Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why a page refresh when loading new styles?

loading page Refresh styles
0
Posted

Why a page refresh when loading new styles?

0

It’s tempting to think it could be handled with a Javascript style switcher instead of the current server-side method. There are two important reasons why it’s better not to: 1) you can bookmark each style this way. 2) the javascript method only adds to the existing style, instead of replacing it. A flush would be necessary to clear each one, and the simplest way to achieve this just happens to be a page refresh.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123