proxy-www

I like a good trick. What if… a URL was… a promise… that fetched said URL?

www.codepen.io.then((response) ={
  console.log(response);
});

That’s what @justjavac did with JavaScript Proxys. A clever trick, that. Don’t @ me about the practicality. Trick


The post proxy-www appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier

I like a good trick. What if… a URL was… a promise… that fetched said URL?

www.codepen.io.then((response) => {
  console.log(response);
});

That’s what @justjavac did with JavaScript Proxys. A clever trick, that. Don’t @ me about the practicality. Trick, folks.

Direct Link to ArticlePermalink


The post proxy-www appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier


Print Share Comment Cite Upload Translate Updates
APA

Chris Coyier | Sciencx (2021-05-24T19:09:59+00:00) proxy-www. Retrieved from https://www.scien.cx/2021/05/24/proxy-www/

MLA
" » proxy-www." Chris Coyier | Sciencx - Monday May 24, 2021, https://www.scien.cx/2021/05/24/proxy-www/
HARVARD
Chris Coyier | Sciencx Monday May 24, 2021 » proxy-www., viewed ,<https://www.scien.cx/2021/05/24/proxy-www/>
VANCOUVER
Chris Coyier | Sciencx - » proxy-www. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/24/proxy-www/
CHICAGO
" » proxy-www." Chris Coyier | Sciencx - Accessed . https://www.scien.cx/2021/05/24/proxy-www/
IEEE
" » proxy-www." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/05/24/proxy-www/. [Accessed: ]
rf:citation
» proxy-www | Chris Coyier | Sciencx | https://www.scien.cx/2021/05/24/proxy-www/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.