Freak out !
Alex Kneller
@alex_kneller
alexander_k@walla.net.il
Why should I care
3 must know rules
to improve HTML5 banner load time
1. Minify sources
2. Make fewer HTTP requests
3. Put stylesheets at the top and scripts at the bottom
Minify sources
Minify sources
Compress Images
Compress Images
Example of banner compressed with https://tinypng.com/
Before 110.3kb
After 61.8kb
Saving 44% !
SVG vs Images
SVG
PNG
.
Pure CSS logo
Less HTTP requests
Style sheet at the top
Scripts at the bottom
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML5 Banner</title>
<link rel="stylesheet" href="css/styles.css?v=1.0">
</head>
<body>
<!-- html code -->
<script src="js/scripts.js"></script>
</body>
</html>Do not guess it, Test it!
Just nice demo to end up with
Follow us
@wallacode