• 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

    (@kiboit)

    Hi @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

    –Albert

    Thread Starter vanminh888

    (@vanminh888)

    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

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @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

    (@vanminh888)

    It worked for me. Thank you, the support was amazing!

    Thread Starter vanminh888

    (@vanminh888)

    Hi @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

    Thanks,

    • This reply was modified 4 years, 4 months ago by vanminh888.
    Plugin Author Albert Peschar

    (@kiboit)

    Hi @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. 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. I don’t believe it will really improve performance, but it will improve your PageSpeed score.

    –Albert

    Thread Starter vanminh888

    (@vanminh888)

    Hi @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

    (@kiboit)

    Hi @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

    (@vanminh888)

    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.