Woocommerce optimize images for mobile - image

I'm trying to improve pagespeed results for my clients.
I'm making an eshop with woocommerce and although I get 90-92% for desktop in the mobile I only have 38-40% because of images that it says to optimize them.
I've already make several changes for that reason, using EWWW Image optimizer plugin, which is very good and lets you customize several things for the images. I've deactivated all the rest of the images that theme or wordpress creates and I don't need.
I only use shop_thumbnail, shop_catalog, shop_single resize formats but although that in desktop works good, in mobile gives me the above issue...
What can I do to make it work also in mobile properly? Is there any code that I can input for ex srcset (I've noticed that this places a role for it)?

Related

Prestashop, same product image URL resolving to different images for different visitors

We're using Prestashop 1.5.6.0, and something really weird is happening on a test site of ours, we have to use in a demo later today.
The following URLs:
http://pstest.personera.com/gao/351-large_default/baby-book-girl.jpg
http://pstest.personera.com/gao/350-large_default/baby-book-boy.jpg
are acting weird for different visitors. My colleagues in Indore, India, are seeing two different images, and we've tested on about 3 different machines at their offices. They are seeing the correct images, one of a baby boy, and one of a baby girl product cover image.
In South Africa, myself and two other colleagues are seeing the same image for both the above links. The -girl.jpg image is the same as the contents of the -boy.jpg image.
This is a really weird issue, and none of the conventional fixes work. I tried browser cache and cookie clearing. I tried 2 other machines in South Africa. I thought maybe Chrome is borked, so I tried different browsers as well as Mac OS X and Windows 7. All of them show the same image contents.
And that's not the end of it. When I add more products in Prestashop, these additional products also show the same cover graphic as for the first product in the store.
I even tried browsing through a proxy to see if I can get the correct images displaying. Nothing works.
I didn't believe my colleagues in India when they told me they see different (the correct) image content, so I TeamViewed into one of their PCs and saw that the images are displaying correctly.
The only other potential culprit I suspected is web server caching, but the thing is, the images were just uploaded minutes ago, and how on earth does the -girl.jpg image get to look the same as -boy.jpg. I tried re-uploading the images with different filenames, I even deleted the product in the eCommerce platform.
NOTHING works...any ideas?
Note: I also tried regenerating images in Prestashop...with no effect.
Prestashop has a feature to configure image quality. I turned "Use PNG only if the base image is in PNG format." off, and the problem got fixed.
I'll try using this again once we've upgraded to the latest version.

Using google docs as a publishing tool

I am an author of short stories. I like using google docs and I like the idea of when I update a story these changes propagate to the sites I publish on. This system works fine in the latter versions of chrome and IE. http://plumplucker.com/
This doesn't work in IOS and only when using Opera on android - At present I need to create PDFs to work on an iPhone or an iPad which defeats my purpose of instant updating.
But right now I am trying to get Firefox to display the contents of the embeded iFrames, but FF 9.01 only shows the outline of the iframe containing a blank page. This is btw how ios displays the same page.
Here is my test page http://plumplucker.com/test3.html
In FF this page will load an iframe of my site, but it will not display the stories. I also tried having docs on google apps in case that would act differently - but no difference.
I have tried
Any one have a clue?
Just wanted to say that I have given up on inserting google doc iframes into my webpages hoping that they will render correctly on all platforms and browsers. That proved to be wishful thinking.
Instead I have constructed an app that builds static pages from the Google doc url's. First I let this happen on the fly every time a user selected a story for viewing, but there was quite a lag with this method and with afterthought I saw no reason not to create static pages. This I do for all my texts even if I have only changed a few details in one of them. I publish PDSs at the same time with TCPDF.

How to create image gallery in ASP.NET MVC3 with jquerymobile?

i have develop a Jquerymobile applicataion in MVC3(Razor) it is working fine in mobile devices and desctop.Now i want create image gallery in this app that is when i open the app in Iphone then i get the images from Iphone gallery for uploading..Please help me how can i get all images gallery in Iphone..
a google [ other search engines available ] search for html image gallery, jquery gallery etc should yeild quite good results for displaying a gallery. however if you want the photo from the phone itself then you need something like phonegap and create an application for a phone so that you can access the phone itself.
there is no way for a website to access iphones files, hence the reason why upload boxes are disabled when you visit websites.
the other options is to hook through facebook and allow users to pick a photo from the ONLINE content, that can then be passed over, however this is theory and you need to actually create something, anything and then maybe get guidance when you are stuck, or have problems.

Get homepage content with PHP curl() and push the result into a Flash player with actionscript

It's a freak question, but can you offer me any working solution in flash?
I want to create a website tester, so I want to get the external homepage and render it to the Flash... If it's an image or the full website I accept both.
I remember! Same as http://www.thumbalizr.com/ just ratio 1:1.
Is there any opensource script for it?
There is wkhtmltopng; IIRC it has PHP bindings also - note that it needs X installed on the server.

Preventing Mobile Safari Cache Overflow

I've got a simple little web app that's aggregating a couple views from some ethernet enabled cameras around my house. This is basically a little dashboard, so that I can easily tell what's going on around the house. I've got it refreshing the images every so often by appending new Date().getTime() to the base URI.
Everything works happy days, except for one little issue. If I leave the dashboard up on my iPad for awhile, it runs out of memory and crashes back to the home screen. I know that its because Mobile Safari is caching each of these images in RAM and it eventually ends up with far too many of them.
Since these images are being hosted on embedded devices; I really have no ability to modify the caching headers directly. I would like to stay away from making a wrapper on my server side as well.
My question is; can anyone think of a way to prevent Mobile Safari from caching these images so aggressively that it crashes?
You might try to reuse your img tags and/or set the src attribute to an empty string before removing an image. It's probably not an aggressive cache that's crashing mobile safari, but how the browser doesn't deal well with releasing image references when image tags get deleted.
You might find more useful information here:
http://www.vargatron.com/2010/08/ipad-html5-js-memory-management/

Resources