Title: SG Optimizer&#8217;s &#8220;Defer Render-blocking JavaScript&#8221;
Last modified: September 16, 2022

---

# SG Optimizer’s “Defer Render-blocking JavaScript”

 *  Resolved [kflow0](https://wordpress.org/support/users/kflow0/)
 * (@kflow0)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/sg-optimizers-defer-render-blocking-javascript/)
 * I currently have a site that is using a “carousel” it has been causing a brief
   layout shift on the site. I have figured out that the “Defer Render-blocking 
   JavaScript” in SiteGround Optimizer is causing the temporary layout shift. This
   is the code in the [backend](https://drive.google.com/file/d/1AXjnMHnGFMZE31ACWSqRgdSpUS9CkSyv/view?usp=sharing)
   that I am using for the carousel. This is the code at the [frontend](https://drive.google.com/file/d/11Pj1KccXHuktzhmfYUOllIX-25OK-xEl/view?usp=sharing)
   after Siteground Optimizer has messed with it. I have confirmed that it is this
   option by turning off the option and it working with no temporary layout shift
   and turning it back on causes it to happen. Is there any kind of code I can add
   to block this option from targeting this section? I see SiteGround Optimizer 
   only has URL options. I do want to keep the option on just not have it target
   this section.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsg-optimizers-defer-render-blocking-javascript%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Plamen M](https://wordpress.org/support/users/plamenm/)
 * (@plamenm)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/sg-optimizers-defer-render-blocking-javascript/#post-16018300)
 * Hello [@kflow0](https://wordpress.org/support/users/kflow0/) ,
 * You need to identify the filter snippet related to this carousel code of yours
   and then exclude it in the filter. Please, follow the instructions here:
 * [https://wordpress.org/support/topic/how-to-use-sg-optimizers-filters-procedure/](https://wordpress.org/support/topic/how-to-use-sg-optimizers-filters-procedure/)
 * Regards,
    Plamen.M Tech Support Team SiteGround.com

Viewing 1 replies (of 1 total)

The topic ‘SG Optimizer’s “Defer Render-blocking JavaScript”’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [siteground optimizer](https://wordpress.org/support/topic-tag/siteground-optimizer/)

 * 1 reply
 * 2 participants
 * Last reply from: [Plamen M](https://wordpress.org/support/users/plamenm/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/sg-optimizers-defer-render-blocking-javascript/#post-16018300)
 * Status: resolved