optimize web page

whdmike
56 Posts
whdmike posted this 25 July 2019

Hello
I would like to optimize web page and make it load faster. I just spoke with my server guy and he said that there is some CSS that page is calling and it doesn't exists. He mentioned also some google fonts.
https://developers.google.com/speed/pagespeed/insights/?hl=en&url=https%3A%2F%2Fwww.miranpeterman.com&tab=mobile

What can be done?

Hello I would like to optimize web page and make it load faster. I just spoke with my server guy and he said that there is some CSS that page is calling and it doesn't exists. He mentioned also some google fonts. https://developers.google.com/speed/pagespeed/insights/?hl=en&url=https%3A%2F%2Fwww.miranpeterman.com&tab=mobile What can be done?
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Giumarr
136 Posts
Giumarr posted this 25 July 2019

is IT is html create a file called .htaccess and ad this code

<ifmodule mod_expires.c>
ExpiresActive on

ExpiresDefault "access plus 1 year"

ExpiresByType text/cache-manifest "access plus 0 seconds"

ExpiresByType text/html "access plus 0 seconds"

ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"

ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"

ExpiresByType image/x-icon "access plus 1 week"

ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType video/ogg "access plus 1 year"
ExpiresByType audio/ogg "access plus 1 year"
ExpiresByType video/mp4 "access plus 1 year"
ExpiresByType video/webm "access plus 1 year"
ExpiresByType video/webp "access plus 1 year"

ExpiresByType text/x-component "access plus 1 year"

ExpiresByType application/font-ttf "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"

ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"

<ifmodule mod_headers.c>

Header append Cache-Control "public"
<FilesMatch ".(js|css|xml|gz|html)$">
   Header append Vary: Accept-Encoding
</FilesMatch>

<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/font
AddOutputFilterByType DEFLATE application/font-truetype
AddOutputFilterByType DEFLATE application/font-ttf
AddOutputFilterByType DEFLATE application/font-otf
AddOutputFilterByType DEFLATE application/font-opentype
AddOutputFilterByType DEFLATE application/font-woff
AddOutputFilterByType DEFLATE application/font-woff2
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/woff
AddOutputFilterByType DEFLATE font/woff2

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</ifmodule>

AFTER SAVE AND UPLOAD IT TO YOUR WEB HOSTIN IN ROOT

is IT is html create a file called .htaccess and ad this code &lt;ifmodule mod_expires.c&gt; ExpiresActive on ExpiresDefault &quot;access plus 1 year&quot; ExpiresByType text/cache-manifest &quot;access plus 0 seconds&quot; ExpiresByType text/html &quot;access plus 0 seconds&quot; ExpiresByType text/xml &quot;access plus 0 seconds&quot; ExpiresByType application/xml &quot;access plus 0 seconds&quot; ExpiresByType application/json &quot;access plus 0 seconds&quot; ExpiresByType application/rss+xml &quot;access plus 1 hour&quot; ExpiresByType application/atom+xml &quot;access plus 1 hour&quot; ExpiresByType image/x-icon &quot;access plus 1 week&quot; ExpiresByType image/gif &quot;access plus 1 year&quot; ExpiresByType image/png &quot;access plus 1 year&quot; ExpiresByType image/jpg &quot;access plus 1 year&quot; ExpiresByType image/jpeg &quot;access plus 1 year&quot; ExpiresByType video/ogg &quot;access plus 1 year&quot; ExpiresByType audio/ogg &quot;access plus 1 year&quot; ExpiresByType video/mp4 &quot;access plus 1 year&quot; ExpiresByType video/webm &quot;access plus 1 year&quot; ExpiresByType video/webp &quot;access plus 1 year&quot; ExpiresByType text/x-component &quot;access plus 1 year&quot; ExpiresByType application/font-ttf &quot;access plus 1 year&quot; ExpiresByType font/opentype &quot;access plus 1 year&quot; ExpiresByType application/font-woff &quot;access plus 1 year&quot; ExpiresByType application/font-woff2 &quot;access plus 1 year&quot; ExpiresByType image/svg+xml &quot;access plus 1 year&quot; ExpiresByType application/vnd.ms-fontobject &quot;access plus 1 year&quot; ExpiresByType text/css &quot;access plus 1 year&quot; ExpiresByType application/javascript &quot;access plus 1 year&quot; &lt;ifmodule mod_headers.c&gt; Header append Cache-Control "public" <FilesMatch ".(js|css|xml|gz|html)$"> Header append Vary: Accept-Encoding </FilesMatch> &lt;ifmodule mod_deflate.c&gt; AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/font AddOutputFilterByType DEFLATE application/font-truetype AddOutputFilterByType DEFLATE application/font-ttf AddOutputFilterByType DEFLATE application/font-otf AddOutputFilterByType DEFLATE application/font-opentype AddOutputFilterByType DEFLATE application/font-woff AddOutputFilterByType DEFLATE application/font-woff2 AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/woff AddOutputFilterByType DEFLATE font/woff2 BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html &lt;/ifmodule&gt; AFTER SAVE AND UPLOAD IT TO YOUR WEB HOSTIN IN ROOT

Last edited 25 July 2019 by Giumarr

Support Team
Support Team posted this 25 July 2019

Hi Miran,

I just spoke with my server guy and he said that there is some CSS that page is calling and it doesn't exists.

The report displays a few unused CSS files: 2 files related to recaptcha, CSS file created by the WP optimization plugin (autoptimize or something like this) and CSS file for the "Roboto" font (most probably used by reCaptcha).

Therefore I suggest that you check the plugins used on your website. All unused CSS files added by the third-party plugins.

...................................................
Sincerely,
Olivia
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Miran, > I just spoke with my server guy and he said that there is some CSS that page is calling and it doesn't exists. The report displays a few unused CSS files: 2 files related to recaptcha, CSS file created by the WP optimization plugin (autoptimize or something like this) and CSS file for the "Roboto" font (most probably used by reCaptcha). Therefore I suggest that you check the plugins used on your website. All unused CSS files added by the third-party plugins. ................................................... Sincerely, Olivia Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
whdmike
56 Posts
whdmike posted this 26 July 2019

Recapcha v3 from Google is used by contact form 7, that is integrated into your contact form. So, what would be your suggestion?

Recapcha v3 from Google is used by contact form 7, that is integrated into your contact form. So, what would be your suggestion?
Support Team
Support Team posted this 09 September 2019

Miran,

Please try to revert expiration to default vaules. Looks like it cached something on your site with old URLs
I just tried to use Contact form with Recaptcha v3 and its loads fine.
In case of no luck please provide us a link to the problematic page for further inveestigation.

...................................................
Sincerely,
Sergey F
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Miran, Please try to revert expiration to default vaules. Looks like it cached something on your site with old URLs I just tried to use Contact form with Recaptcha v3 and its loads fine. In case of no luck please provide us a link to the problematic page for further inveestigation. ................................................... Sincerely, Sergey F Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments