Hi,
Thanks again.
So I’ve tried putting these lines at the very beginning of my theme header template, the first lines in <head> tag:
<link rel='stylesheet' id='codepeople-loading-page-style-css' href='https://localhost:8888/dev/wp-content/plugins/loading-page/css/loading-page.css' type='text/css' media='all' />
<script type='text/javascript' src='https://localhost:8888/dev/wp-content/plugins/loading-page/loading-screens/bar/loading-bar.js'></script>
<script type='text/javascript' src='https://localhost:8888/dev/wp-content/plugins/loading-page/js/loading-page.js'></script>
After page loaded, I checked the page source, it begins with these:
<!DOCTYPE html>
<html lang="en-US">
<head>
<link rel='stylesheet' id='codepeople-loading-page-style-css' href='https://localhost:8888/dev/wp-content/plugins/loading-page/css/loading-page.css' type='text/css' media='all' />
<script type='text/javascript' src='https://localhost:8888/dev/wp-content/plugins/loading-page/loading-screens/bar/loading-bar.js'></script>
<script type='text/javascript' src='https://localhost:8888/dev/wp-content/plugins/loading-page/js/loading-page.js'></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
So I guess they are really at the earliest place they could be.
Unfortunately, I still didn’t see obvious change, there are still a roughly one second (if not longer) period, the browser shows current page (the one I switch to target page from) with the browser’s native progress indicator progressing.
Isn’t this one second period part of loading? Or, it is just waiting for the server to prepare scripts? Weird.
Thank you !