Optimize the download calling of the *.mp4, currently downloading more than once
-
Hi @pushlabs,
Viewing the site Log records I can see the mp4 video is called three times (Apache, 200 code), and is provided three times (nginx, 206 Partial Content success status response code), with the first of file downloaded size being 1.41 M, second 14.4 k, and third 2.16 M.
The original file size is 2.3 MB.
The file is placed in the WordPress home page code with the vidbg container (via WPBekaery).
On the client side I see the plugin uploads the second call for the file being in the script:<script type="text/javascript" id="vidbg-video-background-js-after"> jQuery(function($){ // Source: Shortcode $( 'body' ).vidbg( { mp4: '/wp-content/uploads/2018/06/compressed-Clipchamp2.mp4', webm: '/wp-content/uploads/2018/05/compressed-Clipchamp2.webm', poster: '/wp-content/uploads/2018/05/fallback-poster.png', repeat: true, overlay: false, overlayColor: '#000', overlayAlpha: '0.3', tapToUnmute: false, tapToUnmuteText: '<img src="https://example.com/wp-content/plugins/video-background/img/volume-icon.svg" width="20" height="20" /><span>Tap to Unmute</span>', }); }); </script>
May I ask:
1) Is there a way to optimize the download calling of the *.mp4 file, so it won’t overlap in downloading data, as it currently seems it does?
2) What is the third call for the *.mp4 file, where I’m aware only of two: the first on WordPress home page and the second from the <script> the plugin generates?
- The topic ‘Optimize the download calling of the *.mp4, currently downloading more than once’ is closed to new replies.