Vakeel Mansoori
Vakeel Mansoori

Reputation: 61

How to render header or some data then whole page

I am working on eCommerce website which is taking too much of time load whole webpage because of lots of images and data

How can I render some data like header first and then other like images, etc?

Upvotes: 0

Views: 70

Answers (1)

Yogesh G
Yogesh G

Reputation: 1160

You can use ajax to load part of the website one by one. In your html code just keep whatever is necessary to show at first and then on the document being ready, call your ajax scripts to bring the data at runtime. This way user may not notice a lot of lag.

Upvotes: 1

Related Questions