<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/flaviocopes/best-of/2022/07" -->

---
title: Best Flavio Copes posts — July 2022 | daily.dev
description: The most upvoted Flavio Copes posts from July 2022, curated by the daily.dev community.
canonical: https://daily.dev/sources/flaviocopes/best-of/2022/07
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/flaviocopes/best-of/2022/07
og:type: website
og:site_name: daily.dev
og:title: Best Flavio Copes posts — July 2022 | daily.dev
og:description: The most upvoted Flavio Copes posts from July 2022, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Flavio Copes — July 2022

1. 1  
[](https://daily.dev/posts/html-avoid-displaying-a-broken-image-if-the-image-is-not-found-7vz07gnhn "HTML, avoid displaying a broken image if the image is not found")  
Article  
![Avatar of flaviocopes](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)Flavio Copes · 4y  
HTML, avoid displaying a broken image if the image is not found  
The technique I used is this: this inside an inline event handler in HTML refers to “this element” That’s a workaround that uses the platform features because I know I might not pay attention to that as I’m a solo developer and I might have a broken image visible for weeks before I realize.  
64  
8
2. 2  
[](https://daily.dev/posts/how-to-await-in-a-loop-in-javascript-ip0laqwt9 "How to await in a loop in JavaScript")  
Article  
![Avatar of flaviocopes](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)Flavio Copes · 4y  
How to await in a loop in JavaScript  
You can do the same with a for..in loop to iterate on an object. You need to place the loop in an async function, then you can use await and the loop stops the iteration until the promise we’re awaiting resolves.  
45  
3
3. 3  
[](https://daily.dev/posts/asking-google-to-index-your-page-8t-s3loke "Asking Google to index your page")  
Article  
![Avatar of flaviocopes](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/1f2dbd275797411bbd37bfdaaf0951a9)Flavio Copes · 4y  
Asking Google to index your page  
You can ask Google to index a specific page that you just wrote, so it's indexed (added to the Google results) faster. I think this is only useful for new websites, so as I'm working on a new website I figured I’d test it.Assuming you have set up your domain on Google Search Console, go on URL inspection and enter the page you want to be indexed at the top.  
15  
1

[See all Flavio Copes archives](/sources/flaviocopes/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/flaviocopes/best-of/2022/07#page","url":"https://daily.dev/sources/flaviocopes/best-of/2022/07","name":"Best Flavio Copes Posts — July 2022","description":"The most upvoted Flavio Copes posts from July 2022, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/flaviocopes/best-of/2022/07#items","numberOfItems":3,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/html-avoid-displaying-a-broken-image-if-the-image-is-not-found-7vz07gnhn","name":"HTML, avoid displaying a broken image if the image is not found"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/how-to-await-in-a-loop-in-javascript-ip0laqwt9","name":"How to await in a loop in JavaScript"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/asking-google-to-index-your-page-8t-s3loke","name":"Asking Google to index your page"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Flavio Copes","item":"https://daily.dev/sources/flaviocopes"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/flaviocopes/best-of"},{"@type":"ListItem","position":5,"name":"July 2022"}]}]}
```

