I have a PHTML file that loads products based on the data I send via the set data method.
e.g ->setData('xxx', $xxx)
I call this file in another PHTML file numerous times to show all products.
This means it is taking a while for the page to load.
Is there a way I can load the PHTML file or a CMS Block after page load or on click?
I am using this to show the file:
echo $this->getLayout()->createBlock('core/template')->setData('xxx', $xxx)->setTemplate('xxx/xxx.phtml')->toHtml();
Or is there a way to load PHTML or CMS Block in an iframe?