Title: Enabled Optimize CSS server responded to 404
Last modified: July 8, 2020

---

# Enabled Optimize CSS server responded to 404

 *  [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * (@vanminh888)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/)
 * When I enabled Optimize CSS in PhastPress, the server responded to 404.
 * I checked and found that it was repeating the url
    ex: instead of /wp-content/
   themes/Divi-child-new/assets/font/Averta/Averta-Bold.otf => When I enable Optimize
   CSS, the url is: /wp-content/themes/Divi-child-new/assets/font/themes/Divi-child-
   new/assets/font/Averta/Averta-Bold.otf

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

 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13093587)
 * Hi [@vanminh888](https://wordpress.org/support/users/vanminh888/),
 * Thanks for trying out PhastPress!
 * This must be a compatibility issue with the Divi theme or the stylesheet.
 * Where is the stylesheet (CSS) file that loads this font? Is it inside the original
   Divi theme or inside divi-child-new?
 * If it is inside the child theme, can you share the CSS file with me? You can 
   upload it here and send the link: [upload.ee](https://upload.ee)
 * –Albert
 *  Thread Starter [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * (@vanminh888)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13094628)
 * Yes, it is true that the CSS that loads the website’s font is in the child theme.
   This is the css link I uploaded. [https://www.upload.ee/files/11982559/ru9.main.css.html](https://www.upload.ee/files/11982559/ru9.main.css.html)
 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13094857)
 * Hi [@vanminh888](https://wordpress.org/support/users/vanminh888/),
 * Thanks for sending me the CSS file.
 * I found at least one issue. When you have multiple `src` properties inside a `@
   font-face` declaration, only the first `src` URL gets transformed correctly.
 * I’ve released PhastPress 1.62 just now. Could you update to that version, and
   check if the problem is resolved? Please let me know!
 * –Albert
 *  Thread Starter [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * (@vanminh888)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13096402)
 * It worked for me. Thank you, the support was amazing!
 *  Thread Starter [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * (@vanminh888)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13098508)
 * Hi [@kiboit](https://wordpress.org/support/users/kiboit/) ,
 * I have another request. You can help me remove js and Defer some things related
   to this plugin?
 * [https://www.upload.ee/image/11986152/page_speed.jpg](https://www.upload.ee/image/11986152/page_speed.jpg)
 * Thanks,
    -  This reply was modified 6 years, 1 month ago by [vanminh888](https://wordpress.org/support/users/vanminh888/).
 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13098992)
 * Hi [@vanminh888](https://wordpress.org/support/users/vanminh888/),
 * Glad to hear the fix worked! If PhastPress is working well for you, I’d really
   appreciate it if [you left a review here](https://wordpress.org/support/plugin/phastpress/reviews/#new-post).
   Thanks! 🙂
 * Regarding your PageSpeed Insights results:
 * These scripts are scripts that are loaded by snippets you have pasted into your
   page, for example Google Analytics, Tag Manager, or Facebook. If you mouse over
   the URLs, you can see the original source of these scripts.
 * On your site I now see two scripts loaded by Facebook. If you want to get rid
   of those requests, you will have to remove those from your site.
 * “Defer Offscreen Images” can be resolved by using a lazy loading plugin such 
   as [this one](https://wordpress.org/plugins/rocket-lazy-load/). I don’t believe
   it will really improve performance, but it will improve your PageSpeed score.
 * –Albert
 *  Thread Starter [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * (@vanminh888)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13099419)
 * Hi [@kiboit](https://wordpress.org/support/users/kiboit/)
 * I have left a review for you already.
 * I used this lazy load plugin but it was not good. Another lazy load plugin that
   I am using “lazy-load-optimizer” helps my website gain 10 points more than the
   other recommended plugin.
 * Currently I just need to optimize on mobile but have some problems as the picture
   sent above.
 * Thank you!
 *  Plugin Author [Albert Peschar](https://wordpress.org/support/users/kiboit/)
 * (@kiboit)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13099572)
 * Hi [@vanminh888](https://wordpress.org/support/users/vanminh888/),
 * Thanks for your review!
 * I see that the images that Google PageSpeed Insights complains about are not 
   lazy loaded because they are used in CSS (`background-image`). That’s not so 
   easy to fix without changing your theme.
 * You are also losing a lot of points because these images are very large. That’s
   because they are PNG files. PhastPress cannot further optimize those files without
   a quality loss. You should save photos as JPEG files with a quality level between
   70 and 85. Those files will be a lot smaller than the PNGs and also be automatically
   compressed further into WebP by PhastPress.
 * –Albert
 *  Thread Starter [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * (@vanminh888)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13099781)
 * Thanks for your advice, I will check this out to improve performance.

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

The topic ‘Enabled Optimize CSS server responded to 404’ is closed to new replies.

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

 * 9 replies
 * 2 participants
 * Last reply from: [vanminh888](https://wordpress.org/support/users/vanminh888/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/enabled-optimize-css-server-responded-to-404/#post-13099781)
 * Status: not resolved