diff --git a/www/data/images/.htaccess b/www/data/images/.htaccess index 3835eb5..81f86ca 100644 --- a/www/data/images/.htaccess +++ b/www/data/images/.htaccess @@ -4,5 +4,8 @@ ExpiresByType image/jpg "access plus 1 week" ExpiresByType image/jpeg "access plus 1 week" ExpiresByType image/gif "access plus 1 week" ExpiresByType image/png "access plus 1 week" +ExpiresByType video/webm "access plus 1 week" +ExpiresByType video/mp4 "access plus 1 week" +ExpiresByType video/ogg "access plus 1 week" ExpiresByType image/svg+xml "access plus 1 day" \ No newline at end of file diff --git a/www/data/javascript/ms_basic.js b/www/data/javascript/ms_basic.js index d0458e5..ab81e1f 100644 --- a/www/data/javascript/ms_basic.js +++ b/www/data/javascript/ms_basic.js @@ -47,6 +47,7 @@ function imgcarousel_init() { } imgcarousel_move(carousel, 0); + imgcarousel_preload(carousel); } } @@ -72,5 +73,29 @@ function imgcarousel_move(source, delta) { content.setAttribute('style', 'background-image: url(' + img + ');'); content.innerHTML = ''; } +} +function imgcarousel_preload(source) { + let carousel = findParent(source, ".imgcarousel_parent"); //