Jake Bunce
Well-known member
I am trying to understand the low level function of preloadTemplate.  I found code examples, such as Kier's post here:
http://xenforo.com/community/threads/suggestion-list-of-xenforo-com-custom-edits.17157/#post-224952
But I don't understand exactly how it works and when it is appropriate.
In my specific situation I have a navigation_tabs listener that renders a template:
	
	
	
		
I am wondering if I should be preloading this template.
				
			http://xenforo.com/community/threads/suggestion-list-of-xenforo-com-custom-edits.17157/#post-224952
But I don't understand exactly how it works and when it is appropriate.
In my specific situation I have a navigation_tabs listener that renders a template:
		Code:
	
					$template = new XenForo_Template_Public('nat_childlinks', array(
					'firstChildNodes' => $firstChildNodes,
					'selected' => $selectedTabId == 'nodetab' . $nodeTab['node_id']
				));
				$childLinks = $template->render();
	I am wondering if I should be preloading this template.