Title: Autoptimize
Last modified: June 3, 2019

---

# Autoptimize

 *  [beatcore](https://wordpress.org/support/users/beatcore/)
 * (@beatcore)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/autoptimize-10/)
 * Hi there,
 * i got a problem with the instagram plugin and “Autoptimize”:
 * When i let Autoptimize optimize JS (merge JS) the plugin stops working (only 
   a loading icon appears). I’ve already excluded the two scripts sb-instagram.min.
   js, sb-instagram.js in the Autoptimize Options, but it’s still not working. I’ve
   also excluded the js/jquery/jquery.js and the migrate of jquery – still not working.
   I have to disable all JS Options to see the Instagram Posts…
 * I found just one half-baked solution…
 * + Merge JS in combination with + Inline JS
 * …but with these two options together the cache of Autoptimize is growing way 
   to fast and i have to manually clean it every 2nd day, which is kinda odd.
 * Is there any other solution to be able to merge JS and have a working Instagram
   Feed?
 * Thank you in advance,
    regards

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11599518)
 * Hey beatcore,
 * Typically our plugin works just fine with autoptomize and the default settings.
   Can I take a look at a page that is having the issue? I can let you know what
   might be going on then.
 * Thanks!
 * Craig
 *  Thread Starter [beatcore](https://wordpress.org/support/users/beatcore/)
 * (@beatcore)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11809954)
 * Do you have a private Email i can send you the link to? Would appreciate that.
 * Console output while JS Minify is on shows things like:
 * _ is not defined
    wp is not defined moment is not defined …
 * Thx
    -  This reply was modified 6 years, 8 months ago by [beatcore](https://wordpress.org/support/users/beatcore/).
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11810017)
 * maybe try excluding `wp-includes/js/dist` (and possibly `lodash` too)?
 * frank (ao dev)
 *  Thread Starter [beatcore](https://wordpress.org/support/users/beatcore/)
 * (@beatcore)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11811614)
 * By excluding
 * > wp-includes/js/dist
 *  it is working, but i get 2 other errors with another plugin then 🙁 And the 
   google pagespeed is worse too because of that exclude.
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11811702)
 * > i get 2 other errors with another plugin then
 * what JS errors are those (and what plugin)?
 * > the google pagespeed is worse too because of that exclude.
 * yeah, in that case you have a choice to make 😉
 *  Thread Starter [beatcore](https://wordpress.org/support/users/beatcore/)
 * (@beatcore)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11811741)
 * These errors are:
 * `ReferenceError: Backbone is not defined` from notes-common-v2.js
    `TypeError:_
   is undefined` from admin bar
 * But seems to be that i only get these when being logged in… Frontend seems stable.
 * Page Speed (only on insights) drops by 40 points :/ (render blocking ressources)
 *  [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11811751)
 * for
 * > ReferenceError: Backbone is not defined from notes-common-v2.js
   >  TypeError:_
   > is undefined from admin bar
 * you could also exclude backbone and underscore.
 * > Page Speed (only on insights) drops by 40 points :/ (render blocking ressources)
 * As I wrote, you’ll have to make a choice between a high pagespeed score and a
   working Instagram feed 🙂
 *  Thread Starter [beatcore](https://wordpress.org/support/users/beatcore/)
 * (@beatcore)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11811834)
 * > As I wrote, you’ll have to make a choice between a high pagespeed score and
   > a working Instagram feed 🙂
 * yeah, i was hoping to get both 😉
 * thx anyway!
    -  This reply was modified 6 years, 8 months ago by [beatcore](https://wordpress.org/support/users/beatcore/).
 *  Plugin Contributor [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11812085)
 * Hey everybody,
 * Just thought I would chime in here. We have an update coming in September that
   will drastically change how the plugin works. It’s possible this won’t be an 
   issue then (you won’t need to exclude any files).
 * If you’d like, we have a version of the update we have been giving others to 
   test. Contact me on our website if you’d like to try it out: [https://smashballoon.com/instagram-feed/support/](https://smashballoon.com/instagram-feed/support/)
 * Thanks,
 * Craig

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Autoptimize’ is closed to new replies.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

## Tags

 * [inline js](https://wordpress.org/support/topic-tag/inline-js/)
 * [jquery.js](https://wordpress.org/support/topic-tag/jquery-js/)

 * 9 replies
 * 3 participants
 * Last reply from: [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/autoptimize-10/#post-11812085)
 * Status: not resolved