Commit 67a28204 authored by David Loiret's avatar David Loiret Committed by Jean-Baptiste Kempf

Add async tag to eliminate render-blocking JavaScript

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2bb7d999
......@@ -227,10 +227,10 @@ function start_head( $title,
<?php /* jQuery */ ?>
<?php /* Get the one in the Google CDN to get cached */ ?>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' type='text/javascript'></script>
<script src='//images.videolan.org/js/bootstrap.min.js' type='text/javascript'></script>
<script async src='//images.videolan.org/js/bootstrap.min.js' type='text/javascript'></script>
<?php if( isset($additional_js) ) {
foreach($additional_js as $js) {
echo '<script src="'.$js.'" type="text/javascript"></script>';
echo '<script async src="'.$js.'" type="text/javascript"></script>';
}
} ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment