Hi Sivakumar,

Yes, it isn't hard to do.
Instead of including the components directly in your page template, render a 
div (maybe you also want to display a "spinner" gif) with appropriate AJAX code 
to load the component directly into the div. You can directly call the 
components by their full path.
So if your page has the URL http://www.mysite.com/mypage.html
Then your component might have the url 
http://www.mysite.com/mypage/myarea/mycomponent.html or 
http://www.mysite.com/mypage/myarea/mylist/0.html
 
Then, when the page loads in the browser the AJAX calls will fetch the 
individual paragraphs in their own requests.

However, I think there may be something wrong with your templates - we have 
some very complicated templates, and no matter how much stuff we put in them, 
they always render extremely quickly... You might want to look at why your 
components are taking so long to render in the first place...

Regards from Vienna,

Richard


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Sivakumar (via Magnolia Forums)
Gesendet: Sonntag, 01. September 2013 22:09
An: Magnolia User List
Betreff: [magnolia-user] How to Load Components Dynamically or in Async

Hi,

In my page I have so many components. Due to more number of components, it is 
taking too much time to run all the functionalities and rendering it.
Most of the components are not required to render on page load. 

Is there any way to load the components dynamically or asynchronously?
So that the page load time can be reduced.

Thanks,
Siva

--
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=8b71c175-3b5f-49a3-9c6d-01ab364243ad

You are invited to Magnolia Conference. Less than a month to go! Register now: 
http://www.magnolia-cms.com/conference/register.html


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, 
E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to