Reputation: 5967
I am trying to do a javascript app which uses local storage to store HTML data which occasionally contains embedded images.but the problem is here i am apposed to a size constraint.do you guys know of any javascript library to compress HTML with embedded image?
I have tried lz-string but it fails with embedded image.any idea?
Upvotes: 0
Views: 328
Reputation: 888
It's probably JPEG images that is embedded, right? You cannot compress the images any further anyway, so focus on the HTML. On desktop browsers you probably just have 10MB of local storage, so It's not the best solutions I'm afraid.
For HTML compression, I would also recommend lz-string.
Upvotes: 1