I'm working on a project where my client asked me if I could eliminate the white flash, shown while switching pages. Now obviously this seems fairly impossible, since this is just the transition between two pages.
Normally I'd use AJAX to solve this problem, however, I'm working in an existing Wordpress codebase, and I'd like to use the most simple solution, so preferably something like making it look like the loading screen is e.g. black by loading the background color first, before the rest of the stuff on the page.
Is this a possibility, and if it is, does anyone know how to do so?
Thanks.
You have to build your website like a one-page app.
You create a layout page with your theme and you load your page content in ajax. In this way, there won't be any reloading.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With