Post by Zezoiaj » Sat Jul 27, 2019 9:59 am

Hello guys , I am really thankful for all of your hard work on trying to help us the new guys in opencart world . we really appreciate it .
My page speed in google test is 40% only ..
one of the advised that google gave me is to convert all my images to be webp , but is there a way for that ? i found a way to convert the new images but the one that already in my store are above 2000 images how can i convert them all at once ? and also what can i do to improve my page speed it is really slow ..

i tried for weeks to get better result but i never did whatever i tried to .

i really hope you can help me guys to get the best result ..
thats my store url " e-electra.com "
i use the last version of opencart 3.0.3.2 , i use gzip in 9
thats what i have in my htaccess

Code: Select all

Options +FollowSymlinks
 
# Prevent Directoy listing 
Options -Indexes
 
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>
 
 
# SEO URL Settings
RewriteEngine On
 
# SSL Yönlendirmesi
RewriteCond %{SERVER_PORT} ^80
RewriteCond %{HTTP_HOST} ^(.*)\.
RewriteRule ^(.*)$ https://e-electra.com/$1 [L,R=301]
 
# www Yönlendirmesi
#RewriteCond %{HTTP_HOST} ^siteadi.com
#RewriteRule (.*) http://www.siteadi.com/$1 [R=301,L]
 
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
 
 
### Additional Settings that may need to be enabled for some servers 
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
 
# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off
 
# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off
 
# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M
 
# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M
 
# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200
 
# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200
 
# 7. disable open_basedir limitations
# php_admin_value open_basedir none
 
 
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
AddOutputFilterByType DEFLATE font/truetype font/opentype
</IfModule>
 
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType image/jpg "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>

i tried to use some extensions such as nitropack and others but they are all bad

any advices ?
thank you all

New member

Posts

Joined
Fri Apr 12, 2019 10:49 pm

Post by letxobnav » Sat Jul 27, 2019 10:54 am

well, there is ofcourse a way to setup webp support which will reduce image sizes under certain conditions but your current images are way to big as it is.
suggest you try to reduce the jpg/gif/png image sizes you have first.
webp support will be derived from your jpg images anyway as I assume you do not have RAW originals so if your jpg images are huge, webp will only go so far.

your banner images are around and above 200K each, loads in more than 3 seconds, no need for that.

so reduce jpg first, firefox does not support webp anyway so you have to do that in any case.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Mon Jul 29, 2019 5:52 pm

Zezoiaj wrote:
Sat Jul 27, 2019 9:59 am
My page speed in google test is 40% only ..
It's not OpenCart but we list what we did to boost the score of another website in detail here:
https://www.antropy.co.uk/blog/case-stu ... rovements/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by by mona » Sun Feb 13, 2022 8:58 am


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: ianhaney50, Majestic-12 [Bot] and 24 guests