Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Preloading images using jQuery Reply To: Preloading images using jQuery

#204339
Shikkediel
Participant

Wow, simply adding some htaccess to enable deflate turned out to be a pretty good move. If the images are svg, that should save a lot of bytes…

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>