Title: Exclude optimization for javascript
Last modified: February 8, 2024

---

# Exclude optimization for javascript

 *  Resolved [marketingsog](https://wordpress.org/support/users/marketingsog/)
 * (@marketingsog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-optimization-for-javascript/)
 * Hi there, I use the script from [https://www.peeayecreative.com/how-to-make-the-divi-blog-grid-equal-height/](https://www.peeayecreative.com/how-to-make-the-divi-blog-grid-equal-height/)
   in my divi blog. When I visit the page for the first time, there is a big space
   on the bottom of the posts between text and button. When I reload the page it
   disappears. It is caused by autoptimze. Can you help me, how i can deactivate
   the compression from autoptimize for this js? The code is added to headers. Thank
   you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-optimization-for-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-optimization-for-javascript/#post-17409975)
 * As the article mentions both CSS and JS, we should first determine which one 
   causes the big space, so first and foremost try disabling CSS or JS optimization(
   or HTML or Image optimization (incl. lazyload)) to see what causes this. Based
   on that we can see what the next steps need to be 🙂
 * frank
 *  Thread Starter [marketingsog](https://wordpress.org/support/users/marketingsog/)
 * (@marketingsog)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-optimization-for-javascript/#post-17411766)
 * Thanks frank, it is caused by lazyload
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-optimization-for-javascript/#post-17416538)
 * likely the JS from that 3rd party divi script requires images being available
   early, in which case you’ll have to choose between lazyloading and the equal 
   height marketingsog :-/

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

The topic ‘Exclude optimization for javascript’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/exclude-optimization-for-javascript/#post-17416538)
 * Status: resolved