Title: SG Optimizer removes css preload
Last modified: June 9, 2021

---

# SG Optimizer removes css preload

 *  Resolved [dermachacek](https://wordpress.org/support/users/dermachacek/)
 * (@dermachacek)
 * [5 years ago](https://wordpress.org/support/topic/sg-optimizer-removes-css-preload/)
 * Hi all,
 * I want to preload 2 CSS-files because Google Page Speed Insights tells me to 
   do it. I added these two lines to the header of my theme:
    <link rel=”preload”
   href=”[https://www.eventfex.com/wp-content/themes/directory2/design/css/alert.css&#8221](https://www.eventfex.com/wp-content/themes/directory2/design/css/alert.css&#8221);
   as=”style” /> <link rel=”preload” href=”[https://www.eventfex.com/wp-content/themes/directory2/design/css/reset.css&#8221](https://www.eventfex.com/wp-content/themes/directory2/design/css/reset.css&#8221);
   as=”style” />
 * But SG Optimizer removes the 2 lines when I acitivate the option “combine css
   files”. I think it moves the code to the combined css file, right? What can I
   do that this does not happen?
 * Thank you for your help!
    Best, Manfred
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsg-optimizer-removes-css-preload%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Hristo Pandjarov](https://wordpress.org/support/users/hristo-sg/)
 * (@hristo-sg)
 * SiteGround Representative
 * [5 years ago](https://wordpress.org/support/topic/sg-optimizer-removes-css-preload/#post-14539654)
 * When you **COMBINE** CSS files together the individual lines are completely removed
   and the combined resource is enqueued. This is how this optimization works. If
   you prefer, you can keep it off 🙂

Viewing 1 replies (of 1 total)

The topic ‘SG Optimizer removes css preload’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Hristo Pandjarov](https://wordpress.org/support/users/hristo-sg/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/sg-optimizer-removes-css-preload/#post-14539654)
 * Status: resolved