Session 4
For visual: http://browsershots.org/
We can suspend the loading of some images/iframes until they are needed. This enhances the performance of our page radically
There are other options to embed
audio: soundcloud
Advantages:
Disadvantages:
<audio controls loop>
<!-- fallback, if not supported -->
Your browser does not support the <code>audio</code> element.
<!-- source files -->
<source src="crimson_fly.ogg" type="audio/ogg">
<source src="crimson_fly.mp3" type="audio/mpeg">
</audio>
Attributes:
<video width="640" height="480" poster="youtube_banner.jpg" controls preload autoplay>
<!-- VIDEO SOURCES (files) -->
<source src="puppies.webm" type="video/webm"> <!--newest format-->
<source src="puppies.ogv"type="video/ogg">
<source src="puppies.mp4" type="video/mp4"><!--oldest format-- >
<!-- SUBTITLES -->
<track src="subtitles-en.vtt" kind="subtitles" srclang="en" label="English" default>
<track src="subtitles-fr.vtt" kind="subtitles" srclang="fr" label="French">
I'm sorry, your browser doesn't support HTML5 video. <!-- fallback if the browser can't play video -->
</video>
<iframe width="560" height="315" src="https://www.youtube.com/embed/IfeyUGZt8nk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>