PHP code example of raeder / craft-http2-server-push-twig

1. Go to this page and download the library: Download raeder/craft-http2-server-push-twig library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

raeder / craft-http2-server-push-twig example snippets


<link rel="stylesheet" href="{{ '/uploads/test.mp3' | h2push('audio', true) }}">