[ic] Strap template slow
scaballe at gmail.com
Tue Dec 29 12:39:11 UTC 2015
On 29/12/15 10:53, Frank Reitzenstein wrote:
> Frank Reitzenstein wrote:
>> EA3KZ Salvador Caballé wrote:
>>>>> Any idea where can be the bottleneck?
>> Hello Salvador. I have tried to speed up my strap store not yet released
>> in recent weeks. I have links comparing yours with mine at GTMetrix.
>> Note that I have a lot more images than the original and yet it is
>> giving me a page size of about 270KB but yours is around 400KB.
>> You never mentioned that?
>> If you actually do this yourself at GT Metrix (and check out all the
>> competitors plus google and don't forget google mobile friendly) and
>> follow all the advice you will see suggestions on how you can speed it
>> up. I have already followed some of these.
>> I don't get 100%, but I spent a long time trying to address all issues.
>> Note that my image at the top are degraded in quality, compressed and
>> (this is experimental) hosted on Flickr in place of CDN. However I also
>> eventually got a free CDN to work.
>> Since doing that I signed up at free Swarm CDN. You can see their script
>> at the top of the source on every page.
>> var swarmcdnkey = "608b1630-6d0d-4977-8458-c282e9a8af28";
>> var swarmimagescan = true;
>> <script src="//assets.swarmcdn.com/swarmdetect.js"></script>
>> You have to sign up and get a key. From memory both the flickr pics and
>> swarm cdn made a large difference.
>> What else have I done?
>> I used perl GD::Image to find the dimensions of all my images. I wrote a
>> perl script to download my products file via ftp, locate the images,
>> download them and write down the 4 image and thumb dimensions in
>> products.txt (I have a lot of spare columns).
>> Now wherever images are displayed anywhere, I make sure that the image
>> has alt text (the product description) and also the height and width
>> which speeds browser rendering.
>> I also have apache2.conf.dynamic and apache2.conf.static.
>> Now I have a master batch file which processes my data. So the first
>> thing it does is copies apache2.conf.dynamic to apache2.conf then
>> service apache2 restart.
>> Then it creates static pages. So all the arduous routes from the left
>> hand menu to the groups pages and then the product (bar the flypage) are
>> static (using LWP::Simple). The same is done for the brands and selected
>> files like index.html and brands.html.
>> I plan to do more, but I want to go live on three sites first.
> You may be able to follow the broken links here:
> interchange-users mailing list
> interchange-users at icdevgroup.org
Thanks for your comments and suggestions
More information about the interchange-users