Avatar of pghn
pghn
Flag for Portugal asked on

How to preload an entire PHP page with Ajax

I need to preload an entire PHP page (not only images and not only the body tag), in a way that only shows the content after it loads everything.
(And of course like to have a typical loading image while users wait)

Can it be done?
PHPJavaScript

Avatar of undefined
Last Comment
pepio

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
contactkarthi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pghn

ASKER
contactkarthi:

works partially...
- I can see the edges of the website while loading (not so nice...), and other javascript on the page (like the navigation menu) is always shown...

Can I tweak this bypass the problem? It's almost fine...
SOLUTION
pepio

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
pghn

ASKER
How can I center a gif image while the page is loading, instead the "Page loading..."?
pepio

Sure, just insert a html image.


<img src="url">

Open in new window

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy