New member

Posts

Joined
Fri Apr 10, 2015 11:38 pm

Post by thekrotek » Sat Jun 30, 2018 5:37 pm

No, you don't need that.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by khnaz35 » Mon Mar 11, 2019 5:52 pm

thekrotek wrote:
Sat Jun 30, 2018 5:37 pm
No, you don't need that.
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 ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by thekrotek » Mon Mar 11, 2019 5:56 pm

khnaz35 wrote:
Mon Mar 11, 2019 5:52 pm
But if we don't then the page speed is terrible , how to increase the page speed ?
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


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by khnaz35 » Mon Mar 11, 2019 6:12 pm


Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by thekrotek » Mon Mar 11, 2019 6:29 pm

khnaz35 wrote:
Mon Mar 11, 2019 6:12 pm
i am also facing issue and its reducing the web speed
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


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by khnaz35 » Mon Mar 11, 2019 7:17 pm

thekrotek wrote:
Mon Mar 11, 2019 6:29 pm
khnaz35 wrote:
Mon Mar 11, 2019 6:12 pm
i am also facing issue and its reducing the web speed
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.
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/mw9n47

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by thekrotek » Mon Mar 11, 2019 7:23 pm

I'm sorry, but I can only repeat my previous reply. I know very well, what I'm talking about.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by khnaz35 » Mon Mar 11, 2019 7:46 pm

thekrotek wrote:
Mon Mar 11, 2019 7:23 pm
I'm sorry, but I can only repeat my previous reply. I know very well, what I'm talking about.
So what would you suggests then?

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by thekrotek » Mon Mar 11, 2019 8:14 pm

khnaz35 wrote:
Mon Mar 11, 2019 7:46 pm
So what would you suggests then?
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


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by IP_CAM » Mon Mar 11, 2019 8:49 pm

Well, a few tricks exist, to get rid of that Problem. One of them would be,
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>
(Cookie-free Subdomain linking, the Site is configured/called as http:// www. yoursite. com! )

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 ... :laugh:
Good Luck!
Ernie
Last edited by IP_CAM on Mon Mar 11, 2019 9:03 pm, edited 2 times in total.

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by thekrotek » Mon Mar 11, 2019 8:59 pm

Combining JS and CSS scripts into one doesn't give you much increase in performance. With so called minimization you simply remove spaces and line breaks, that's all. But if your JS script queries some resource and response is slow, everything will remain the same.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by IP_CAM » Mon Mar 11, 2019 9:09 pm

Well, it's the combination of relatively 'minor' things, what makes the difference,
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! :D
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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by letxobnav » Mon Mar 11, 2019 10:51 pm

putting everything inline will increase the speed on first page load as it reduces the amount of asset requests, but only on the first page load as asset caching is no longer in the cards.

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 IP_CAM » Tue Mar 12, 2019 5:21 am

letxobnav wrote:
Mon Mar 11, 2019 10:51 pm
putting everything inline will increase the speed on first page load as it reduces the
amount of asset requests, but only on the first page load as asset caching is
no longer in the cards.
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! :D
---
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/');
PLUS creating a VqMod/OcMod, or directly modify the existing Code,
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 ... 8)

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! :laugh:
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 .... :choke:

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 ... :crazy:
Good Luck! ;)
Ernie
---
Weismannweb Cache Category Extension:
Image

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.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by letxobnav » Tue Mar 12, 2019 1:07 pm

well, as you know, I run my site from my own server via DSL so performance optimization for me has always been priority number 1.
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.


User avatar
Expert Member

Posts

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

Post by thekrotek » Tue Mar 12, 2019 6:30 pm

letxobnav wrote:
Tue Mar 12, 2019 1:07 pm
I use opencart (shop) and joomla (articles) and so far joomla is giving me the biggest headaches and that is just for articles.
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


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: No registered users and 170 guests