summaryrefslogtreecommitdiff
path: root/js/jw_player/flvVideo.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2012-06-16 21:57:04 +0000
committerfisharebest <fisharebest@gmail.com>2012-06-16 21:57:04 +0000
commit626f69d705ee67055cbb43a8483376d3878a56cc (patch)
tree4cf83776770fe3adf6d2939ca1275910e7c77f8a /js/jw_player/flvVideo.php
parent5f659efe6919fa45701f84ed0038a137c88f0c63 (diff)
downloadwebtrees-626f69d705ee67055cbb43a8483376d3878a56cc.tar.gz
webtrees-626f69d705ee67055cbb43a8483376d3878a56cc.tar.bz2
webtrees-626f69d705ee67055cbb43a8483376d3878a56cc.zip
Defer loading of external javascript (and most inline javascript) to the bottom of the page. This improves responsiveness, as the page can be rendered before the scripts are parsed.
Diffstat (limited to 'js/jw_player/flvVideo.php')
-rw-r--r--js/jw_player/flvVideo.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/jw_player/flvVideo.php b/js/jw_player/flvVideo.php
index 28228c86d7..ec9aa13894 100644
--- a/js/jw_player/flvVideo.php
+++ b/js/jw_player/flvVideo.php
@@ -4,7 +4,7 @@
// Display flv video media Items using JW Player in webtrees
//
// webtrees: Web based Family History software
-// Copyright (C) 2011 webtrees development team.
+// Copyright (C) 2012 webtrees development team.
//
// Derived from PhpGedView
// Copyright (C) 2007 to 2010 PGV Development Team. All rights reserved.
@@ -31,7 +31,7 @@
<META HTTP-EQUIV="Expires" CONTENT="Tue, 01 Jan 1980 1:00:00 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title>JW Player for Flash</title>
- <script type="text/javascript" src="swfobject.js"></script>
+ <script src="swfobject.js"></script>
</head>
<body bgcolor="#000000">
<center>
@@ -68,7 +68,7 @@ $preview="";
<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
- <script type="text/javascript">
+ <script>
var video = "<?php echo $flvVideo; ?>";
var preview = "<?php echo $preview; ?>";
var s1 = new SWFObject("player.swf","ply","480","365","9","#000000");