Jump to content

call displayContainerbottom hook from javascript to speed up loading homepage


khalilgrom
 Share

Recommended Posts

I want to speed up loading homepage of my shop (prestashop 1.7.5.2)

I have added loading screen in head.tpl and lazy loading images but I have module which display products for choosen categories and I want to load it with jquery after page loaded

is there any way to do that

 this is the part I want to load with ajax      

		{if $page.page_name == 'index'}
			<div class="container">
				{hook h="displayContainerbottom"}
			</div>
		{/if}	

I want to call

Quote

{hook h="displayContainerbottom"}

after page loading (display an image  instead while waiting to load )

Edited by khalilgrom (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More