How can we use image compression in our code with js because it takes too much time when it is loading at live server ?
rainborick
4:17 pm on Oct 9, 2014 (gmt 0)
It isn't clear to me what you're asking.
If you want to compress your JavaScript files, there are tools available online that will help. Search on "JavaScript minify tool".
If you want to compress your images, there are similar tools available online. Search on "image compression tool" to find one that will reduce the size of the image files on the server with little loss of quality. JavaScript really shouldn't be involved in this process in most cases.
not2easy
4:37 pm on Oct 9, 2014 (gmt 0)
Google offers resources to help you compress and optimize images and a lot of information about getting the best results from different methods: [developers.google.com...]
penders
4:16 pm on Oct 10, 2014 (gmt 0)
Are these images uploaded by your users? Or part of your site design/development?