4 ms·
>Apps need it to determine where to place elements. This determination can't be done client-side? In other words, if I resize the window, it's going to send th
by renholder 8y ago
>Apps need it to determine where to place elements.
This determination can't be done client-side? In other words, if I resize the window, it's going to send the new size to determine where to place the elements in the "new" area?
- tedunangst 8y agodocument.Write("<img src=width.png?" + document.innerWidth + ">")
- jancsika 8y agoThat's a problem. The W3C should probably create a new, rich spec hundreds of pages long so that frontend developers may instead declare images as a unitless set of point relationships to be rendered at any resolution without digital artifacts. For example, instead of working on the pixel level, the developer would be free to simply declare, "an arc may exist in one of these four locations." Then, merely by declaring two further "flag" values, the developer can communicate to the renderer which three arcs not to draw, except for the edge case of no arc fitting the seven previously-declared constraints. Just imagine-- instead of a big wasteful gif for something as simple as an arc animation, the developer would simply declare, "can someone just give me the javascript to convert from arc center to svg's endpoint syntax?" And someone on Stackoverflow would eventually declare the relevant javascript.
- tedunangst 8y agoThe browser can also ship with a pretrained GAN, so the site just asks for a picture of a cat and then the GAN creates one as needed, but nobody will know exactly which cat you saw.
- cimmanom 8y agoYes, but how do you keep the client from then sending that data to the server?
- beatgammit 8y agoYou can't. Even if you block JavaScript, they can still get it from CSS media queries, where the can say which file to download given a certain screen size. The best solution is to use the same screen size as everyone else so you don't stand out. And that's what this does.
- cimmanom 8y agoRight, that’s what I’m saying. Keeping the data client side as ggp suggests is not possible.