Modify Javascript to improve page loading times
1. Add template category 'end' that places content right before final </body> tag 2. Move most Javascript from tpl files into one cacheable file, theme.js 3. Load scripts at end of the HTML document instead of in the header 4. Minify several Javascript files Note that the second and third things were only done for Frost and Frost Mobile. Doing it for every theme means going through every .tpl for every theme and rearranging the Javascript, which is tedious.
This commit is contained in:
		
					parent
					
						
							
								3f39e29e6e
							
						
					
				
			
			
				commit
				
					
						1f09e7ad23
					
				
			
		
					 132 changed files with 3300 additions and 1917 deletions
				
			
		| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
		$("nav").bind('nav-update',  function(e,data){
 | 
			
		||||
			var elm = $('#pending-update');
 | 
			
		||||
			var register = $(data).find('register').text();
 | 
			
		||||
			if (register=="0") { reigster=""; elm.hide();} else { elm.show(); }
 | 
			
		||||
			if (register=="0") { register=""; elm.hide();} else { elm.show(); }
 | 
			
		||||
			elm.html(register);
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue