Loading all content for zero load time !Help!
-
Hi,
A client has picked up on the minute time between pages where the screen goes white and quite rightly pointed out “we only need to load (the content), (the title), and (the featured image) each time.. can’t we do this and keep the rest displayed?”
The only way I can think of doing this is by loading all of the content in the header using get_pages(); and storing it in an array, with the pages ID as the key, then use javascript to display and remove content.
I would use a custom walker to remove the href from nav menus and instead have a function onClick like changePage($id) or something.
has anyone ever done anything like this before, and can you offer any advice on how I should go about it?
would you say I shouldn’t do this?the site is located on our staging site at https://anticom.tv/fmegroup
- The topic ‘Loading all content for zero load time !Help!’ is closed to new replies.