The Foxy forums are on the move!

We're in the process of moving our forums over to a new system, and so these forums are now read-only.
If you have a question about your store in the meantime, please don't hesitate to reach out to us via email.

Enabling Compression and Minifying JS

Google pagespeed insights gives suggestions on increasing site speed and I am working wtih my developer to improve these areas. I was wondering if FoxyCart might ever do the following.

Thanks!
-------------------
Compressing https://cmcrescue.foxycart.com/…gin0o65u035ihig9mbf22tg7&_=1469463268406 could save 1.8KiB (62% reduction).
Compressing https://cmcrescue.foxycart.com/…gin0o65u035ihig9mbf22tg7&_=1469463268407 could save 1.8KiB (62% reduction).
Compressing https://cmcrescue.foxycart.com/…469463268404&output=json&_=1469463268405 could save 1.8KiB (62% reduction).

Minify JavaScript for the following resources to reduce their size by 3.1KiB (31% reduction).
Minifying http://cdn.foxycart.com/cmcrescue/foxycart.js?ver=2 could save 3.1KiB (31% reduction) after compression.
Tagged:
Comments
  • brettbrett FoxyCart Team
    Hi @kmadler. Thanks for checking.

    Unless you've got something else going on, I think the foxycart.js is entirely unnecessary for your account. The loader.js has all the magic to get asap pageloads, and it'll load up what you need. Removing that file entirely will reduce the page weight a bit.

    That said, if you _did_ want to have it separate, you could call it as foxycart.min.js. But the loader.js handles all the caching and cache busting and pageload improvement. Some info here:
    http://www.foxycart.com/blog/caching-and-cdn

    To the others requests, those (I believe) are all post-pageload JSONP requests. They shouldn't be impacting the initial pageload time, and they also should be transmitted compressed as is. Could you perhaps whisper me additional info about how you're testing and seeing a report that they're not transmitted compressed?
  • brettbrett FoxyCart Team
    Quick update: We've ensured javascript responses that weren't previously being gzipped are now being gzipped.

    I realize I didn't address the foxycart.js not being minified. Any files we load automatically or recommend using are .min.js, and those are minified. But you can load up the non-minified if needed. Just change that to foxycart.min.js and you'll be good to go.
Sign In or Register to comment.