[www-doc] [Git][VideoLAN.org/websites][master] async for XHTML

Christoph Miebach gitlab at videolan.org
Fri Jan 6 12:43:57 CET 2017


Christoph Miebach pushed to branch master at VideoLAN organization / websites


Commits:
42beb07d by Christoph Miebach at 2017-01-06T06:43:53-05:00
async for XHTML

- - - - -


1 changed file:

- www.videolan.org/include/header.php


Changes:

=====================================
www.videolan.org/include/header.php
=====================================
--- a/www.videolan.org/include/header.php
+++ b/www.videolan.org/include/header.php
@@ -228,10 +228,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 async src="<?= isDeveloper() ? '/js/bootstrap.min.js': '//images.videolan.org/js/bootstrap.min.js' ?>" type='text/javascript'></script>
+        <script async='async' src="<?= isDeveloper() ? '/js/bootstrap.min.js': '//images.videolan.org/js/bootstrap.min.js' ?>" type='text/javascript'></script>
         <?php if( isset($additional_js) ) {
             foreach($additional_js as $js) {
-                echo '<script async src="'.$js.'" type="text/javascript"></script>';
+                echo '<script async="async" src="'.$js.'" type="text/javascript"></script>';
             }
         } ?>
 



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/commit/42beb07d6929c3675faa925097e3b0185ce2207f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/www-doc/attachments/20170106/bb176065/attachment.html>


More information about the www-doc mailing list