[www-doc] [Git][VideoLAN.org/websites][master] 2 commits: Add async tag to eliminate render-blocking JavaScript

Jean-Baptiste Kempf gitlab at videolan.org
Thu Jun 16 10:05:40 CEST 2016


Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites


Commits:
67a28204 by David Loiret at 2016-06-16T10:01:44+02:00
Add async tag to eliminate render-blocking JavaScript

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

- - - - -
f22c7489 by David Loiret at 2016-06-16T10:01:44+02:00
Lossless compress largeVLC image

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

- - - - -


2 changed files:

- www.videolan.org/images/largeVLC.png
- www.videolan.org/include/header.php


Changes:

=====================================
www.videolan.org/images/largeVLC.png
=====================================
Binary files a/www.videolan.org/images/largeVLC.png and b/www.videolan.org/images/largeVLC.png differ


=====================================
www.videolan.org/include/header.php
=====================================
--- a/www.videolan.org/include/header.php
+++ b/www.videolan.org/include/header.php
@@ -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>';
             }
         } ?>
 



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/compare/2bb7d999f4b36eb8dff33d9b66500c66bd7a5020...f22c7489fd1de9f1903472bff3edce59b6701f8d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/www-doc/attachments/20160616/199a1369/attachment.html>


More information about the www-doc mailing list