Project

General

Profile

« Previous | Next » 

Revision 838fa668

Added by Scott Ullrich over 15 years ago

Link to javascript file instea of including it on every request saving WAN bandwidth

View differences:

usr/local/www/index.php
696 696
			domTT_activate('welcome1', null, 'x', 287, 'y', 107, 'content', document.getElementById('welcome-container'), 'type', 'sticky', 'closeLink', '','delay', 1000, 'fade', 'both', 'fadeMax', 100, 'styleClass', 'niceTitle');		
697 697
	<?php } ?>
698 698
	});
699
	<?php
699
</script>
700
<?php
700 701
	//build list of javascript include files
701 702
	$jsincludefiles = array();
702 703
	$directory = "widgets/javascript/";
......
707 708
	}
708 709
	foreach($jsincludefiles as $jsincludename) {
709 710
		if(!stristr($jsincludename, ".js"))
710
			continue;	
711
		include($directory . $jsincludename);
711
			continue;
712
		echo "<script src='{$directory}{$jsincludename}' type='text/javascript'></script>\n";	
712 713
	}
713
	?>
714
?>
714 715
</script>
715 716
</form>
716 717
</body>

Also available in: Unified diff