Title: Ignore certain inline JS?
Last modified: June 9, 2021

---

# Ignore certain inline JS?

 *  [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [5 years ago](https://wordpress.org/support/topic/ignore-certain-inline-js/)
 * Hello,
 * My website immediately after the `<body>` tag has a snippet of code to check 
   for webp compatibility. This little piece of code must go immediately after the
   <body> tag to reduce the Largest Contentful Paint (LCP) as per Google’s specifications.
 * No matter what I do, Breeze takes this code and places it into a .js file combined
   with other JavaScript code. Is there a little piece of code Breeze uses to “skip”
   doing this for inline code?
 * i.e. `<script data-breeze="skip">`
 * Any advice is welcome.
 * Thanks,
    S.

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

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [5 years ago](https://wordpress.org/support/topic/ignore-certain-inline-js/#post-14540187)
 * Could you please confirm that the option of inline js is enabled?
 *  Thread Starter [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [5 years ago](https://wordpress.org/support/topic/ignore-certain-inline-js/#post-14540815)
 * Morning,
 * I can confirm this option is turned OFF however, this setting has no effect if
   it’s turned off/on. If I turn this off, all JS is still moved into a .js file.
 * I have “Delay JS inline scripts” OFF and Group JS files ON.
 * Even if everything is turned ON, I would like the option to skip certain JS that’s
   hard coded in, if possible.
 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/ignore-certain-inline-js/#post-14557732)
 * You can do this by adding the js code in a separate js file and called it at 
   your desire location path as you mentioned above. The JS file path (which you
   create to add the JS code snippet) called in **Exclude JS** option under **Advance
   Option** Tab. In this manner, your js code excludes JS minification.
 *  Thread Starter [Sully](https://wordpress.org/support/users/ss88_uk/)
 * (@ss88_uk)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/ignore-certain-inline-js/#post-14557751)
 * Morning,
 * Unfortunately this is not a good solution. If I have 10 inline parts of code 
   in one page, that’s 10 render blocking resources that need to load. This way 
   is inefficient.
 * Is it possible I could request a feature to add this type of solution to “skip”
   inline JS when it is hard-coded with a data attribute tag “skip” (or something
   similar)?
 * Thanks!
    S.

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

The topic ‘Ignore certain inline JS?’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)
 * [lcp](https://wordpress.org/support/topic-tag/lcp/)

 * 4 replies
 * 2 participants
 * Last reply from: [Sully](https://wordpress.org/support/users/ss88_uk/)
 * Last activity: [4 years, 12 months ago](https://wordpress.org/support/topic/ignore-certain-inline-js/#post-14557751)
 * Status: not resolved