From the Google page speed test. found that my website need to Remove render-blocking JavaScript, how can i fix it?
http://ajax.googleapis.com/ajax/libs/jq ... ery.min.js
http://www.mydomain.com/catalog/view/ja ... rap.min.js
http://www.mydomain.com/catalog/view/ja ... /common.js
http://www.mydomain.com/assets/js/1-8f7 ... ba5249b.js
http://www.mydomain.com/catalog/view/ja ... cluetip.js
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
But if we don't then the page speed is terrible , how to increase the page speed ?
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
No idea. It always depends on many things, but none of the listed scripts are "render-blocking".
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/javas ... ?j2v=2.9.2
https://www.test.com/catalog/view/javas ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/javas ... ?j2v=2.9.2
https://www.test.com/catalog/view/javas ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
https://www.test.com/catalog/view/theme ... ?j2v=2.9.2
i am also facing issue and its reducing the web speed
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Your page is loading slow NOT because of some "render-blockin" script, but because of Journal. This is the slowest and most overloaded theme I ever saw on any familiar network. I don't understand, why people keep using it. It's slow as hell and loads dozens of JS scripts.
But even in this case I'd look somewhere else, not in the list of JS scripts.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Thanks for your answer but doesn't make sense look here even in pagespeed test the highest time saving is in java script http://prntscr.com/mw9n47thekrotek wrote: ↑Mon Mar 11, 2019 6:29 pmYour page is loading slow NOT because of some "render-blockin" script, but because of Journal. This is the slowest and most overloaded theme I ever saw on any familiar network. I don't understand, why people keep using it. It's slow as hell and loads dozens of JS scripts.
But even in this case I'd look somewhere else, not in the list of JS scripts.
Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
You need to find out, what exactly is slowing your page down. There's no generic solution, there might be different reasons for that.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
to 'implement' some of the Javascripts into the jquery-2.1.1.min.js
file, and then, link/call this file by/with Javascript code, like:
Code: Select all
<script type="text/javascript"><?php $jq = file_get_contents("http://yoursite.com/shop/catalog/view/javascript/jquery/jquery-2.1.1.min.js"); echo $jq;?></script>
It will then blow up the Page Source considerably, since the entire JS Code will
be shown on a Page Source, still, it will perform much better this way, like shown here:
http://www.velomech.ch/shop/
(Not fully optimized yet, as written, but still much better already )
In addition to this, combine the CSS Code the same way, by implementing the
stylesheet.css code, and others, into the Bootstrap.min.css file, to also improve
overall performance, by using less linkings this way.
But only, after a design has been finished, because it's a little more complicated,
to find some Code, if you have it all in two single large files, compressed to as little
as possible.
But then, one has a good chance, to reach similar performance results as I do ...
Good Luck!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
getting from 92 to 98/99 percent. But it works, if one really cares, to get the upmost
best results. And that's, what finally counts, to belong to the Top OC Performers!
Ernie
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
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.
Well, the Cart Sections should better not be cached, or they might not
present latest Values, by 'standard' caching Routines. Still, Header +
Footer Section placed Code is shown/used on every Page, and therefore
reduces every pageload time, from the first to the last Page viewed, if
optimized. This even might be one reason for problems on Sites, not
automatically refreshing the Cart, after an order has been made on a
Product Page ...
And if combined with Subdomain Image-/Style-/Script-Linking, every single
Page will profit from such. It then only takes the famous WEISMANN Mod,
to also 'cache' the Category Counting, and so leave it on, to make use of it.
especially in small Shops, to keep Visitors from beeing confronted with empty
Listings. It creates one Cache File for the Header-placed Categories and one for
the Category-Sections, and takes the Data from that Place, instead of the DB.
Saves a lot ot Time and Counting, by still offering an important Info to Visitors.
I use it for Years:
https://gist.github.com/weismannweb
---
And one could even cache the Database:
https://github.com/IP-CAM/opencart-cache-ocmod
and this one, I never even checked on yet:
https://github.com/IP-CAM/opencart-cache-module
to possibly end up with a real Performer!
---
And then, something like this will be required, to compress the
OUTPUT Code itself, by removing all that White Space on a Page:
SourceCode Compressor
https://www.opencart.com/index.php?rout ... n_id=29699
---
Then, after changing the header.tpl(twig) Shop Logo Link to an
absolute (Cookie-free) Image URL Link, by also adding 'width+height'
Values, if none exist:
Code: Select all
old:
<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
new:
<a href="<?php echo $home; ?>"><img src="http://yourshop/image/data/logo.png" width="280" height="60" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
and/or use something like this:
Add Images Dimensions (untested)
https://www.opencart.com/index.php?rout ... n_id=35263
Auto-Include width/height tags for images (untested)
https://www.opencart.com/index.php?rout ... n_id=23592
---
then, one only needs to SUBDOMAIN-URL the rest of the Image-Links, by changing the
config.php File(s) accordingly, to:
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.Yourshopsite/shop/');
define('HTTP_IMAGE', 'http://Yourshopsite/shop/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.Yourshopsite/shop/');
define('HTTPS_IMAGE', 'http://Yourshopsite/shop/image/');
in the corresponding catalog/model/tool/image.php File:
---
Sample VqMod Content, it adds width+height Values as well as
changing internal Links to URL Links, meaning, that the above
linked add Image Dimension Mod would probably not be needed.
The Code looks similar in most all OC Versions, but one possibly
needs to add/change/remove some paths + link names, where those
names exist, as well as paths like: catalog/controller/...., depending
on the OC Version used:
skrill.php --- voucher.php ---order.php --- e.t.c.
Code: Select all
<file name="catalog/model/tool/image.php">
<operation error="skip">
<search position="replace"><![CDATA[return $this->config->get('config_ssl') . 'image/' . $new_image;]]></search>
<add><![CDATA[return HTTPS_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;]]></add>
</operation>
<operation error="skip">
<search position="replace"><![CDATA[return $this->config->get('config_url') . 'image/' . $new_image;]]></search>
<add><![CDATA[return HTTP_IMAGE . $new_image . '" width="' . $width . '" height="' . $height;]]></add>
</operation>
</file>
<file name="catalog/controller/payment/skrill.php,catalog/controller/total/voucher.php,catalog/model/checkout/order.php" error="skip">
<operation error="skip">
<search position="replace"><![CDATA[$this->config->get('config_url') . 'image/']]></search>
<add><![CDATA[HTTP_IMAGE]]></add>
</operation>
<operation error="skip">
<search position="replace"><![CDATA[$this->config->get('config_ssl') . 'image/']]></search>
<add><![CDATA[HTTPS_IMAGE]]></add>
</operation>
</file>
or if you only use a few Images in your Shop, link'em manually,
by use of something like this: (OC-3 only, as it comes!)
Allow External Image
https://www.opencart.com/index.php?rout ... n_id=35979
---
An easy Job, after a while, but it pays out!
At least, as long as one uses a decent Hoster, and an upmost optimized
.htaccess file. And all those Mods work by Use of a 'OC default-like'
coded Theme. I would not know, how/if Theme Extensions like Journal/Pavo
e.t.c., will react on such, since some of them use their own way, to cache Code.
And if done right, a 20-product Cat-Page should at least produce a 95/90
Result on GTMETRIX, by use of an OC default like coded Theme. And regardless
of the amount of VqMod/OcMod-Extensions, I have 150+ of them installed,
among a whole Bunch of additional Modules, to still get a 99/91, without
the cached images manually re-shrinked, because then, I get a 99/92 ...
I have more of that Code on my Github Site, but by the amount of 665
free OC Mods, it might take a little time, to find 'em all!
https://github.com/IP-CAM
---
Please note: This 95/90 might not be valid for OC-3 Versions, Twig seems
to slow down overall performance, instead of speeding it up, as it looks,
as I have been reading about, just to have this mentioned too. I kind of
expected this, after finding about 200 files in a OC download, just in charge
of handling Twig ....
But if you have some 'social' crab linkings on such a 'Test' Page, better
don't be surprised, if all this still does not work out, as planned ...
Good Luck!
Ernie
---
Weismannweb Cache Category Extension:
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
The amount of requests, the size of the responses, caching, preloads, pushes, image sizes and types, etc.
I use opencart (shop) and joomla (articles) and so far joomla is giving me the biggest headaches and that is just for articles.
So I find these deliberations always interesting.
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.
Joomla is a lot slower framework, but much, much better coded and stable. You will loose some speed, yes, but it's really worth it. Great framework, great team behind it. Can't say for OpenCart he same, unfortunately, yet it can be easily optimized here and there.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Users browsing this forum: No registered users and 170 guests