diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-10-23 19:03:43 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-10-23 19:03:43 +0200 |
| commit | 464cce29a2e04e508a39cf9e68da4458d53873f8 (patch) | |
| tree | 9d62f919b2f0a4572c50066772aec6c4b052c9a7 /themes/flog/layouts/partials/footer.html | |
| parent | d642e1328a70e9763379dd91f342dd499439c13d (diff) | |
| download | pragblog-464cce29a2e04e508a39cf9e68da4458d53873f8.tar.gz pragblog-464cce29a2e04e508a39cf9e68da4458d53873f8.zip | |
load low-res images first
Diffstat (limited to 'themes/flog/layouts/partials/footer.html')
| -rw-r--r-- | themes/flog/layouts/partials/footer.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/themes/flog/layouts/partials/footer.html b/themes/flog/layouts/partials/footer.html index 6a2857e..0dcd9e1 100644 --- a/themes/flog/layouts/partials/footer.html +++ b/themes/flog/layouts/partials/footer.html @@ -17,9 +17,10 @@ $('.button-collapse').sideNav(); $('#main').smoothState({ prefetch: true, onAfter: ready }); }); - - $(document).ready(function() { - $('.parallax').parallax(); + $('body').imagesLoaded({ background: true }, function() { + $('<img src="/images/skyline.jpg">').load(function() { + $('body').css('background-image', 'url(' + this.src + ')'); + }); }); </script> </body> |
