How to upload the selected image with javascript?

1

I'm adapting my blog to be responsive. However, by hiding the banner, it is still there and always loaded page access. I wonder if you can upload images according to viewport resolution. I do not know if it is possible, but my goal is to find out the width of the viewport via javascript and for that resolution to send the link to the appropriate image without using jQuery.

    
asked by anonymous 11.02.2016 / 17:04

1 answer

1

I do not know if it's all you need, but take a look at it link

It already exists for some time, basically the browser communicates with PHP through a COOKIE, which is created in the first use and in the next iterations with the website PHP will create images for the specified sizes.

    
11.02.2016 / 17:08