# Nice work on DFP plugin update

**URL:** https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422
**Category:** Praise
**Created:** [April 29, 2016, 2:09am UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422 "2016-04-29T02:09:35Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [April 29, 2016, 2:09am UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/1 "2016-04-29T02:09:35Z")

</div>

Just saw an update go live on our community today that shows ads every nth post. We have seen a nice boost in the number of ads without harming the user experience. Good job!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 29, 2016, 2:20am UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/2 "2016-04-29T02:20:04Z")

</div>

This is all @neil so let’s give him some 😍

---

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [April 29, 2016, 3:06am UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/3 "2016-04-29T03:06:46Z")

</div>

Awesome work @neil. Also seems that the ads start to preload as you are scrolling, so the performance comes in good. I’m also assuming the lazy loading helps with general performance of the initial page load.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [April 29, 2016, 2:37pm UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/4 "2016-04-29T14:37:58Z")

</div>

> [@charleswalter](#):
>
> We have seen a nice boost in the number of ads without harming the user experience.

Glad to hear it!

Regarding performance, the ad unit is loaded asynchronously from the googletag API. All the plugin renders is a blank rectangle with the shape of the ad, and googletag fills it in later. Whether the ad is placed in the space when you see it depends on the speed of googletag. In practice, the “every Nth post” ads are already rendered by the time I scroll to them.

---

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [April 29, 2016, 4:31pm UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/5 "2016-04-29T16:31:09Z")

</div>

Oh, does that mean if we have a page of 100 replies that we are making 100 / Nth replies ad calls even if the user doesn’t see them?

I don’t want to turn a topic of praise into a discussion 😉 but this would be harmful to our ad provider relationships. I can lower N for now, but ad visibility is an important issue.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [April 29, 2016, 7:54pm UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/6 "2016-04-29T19:54:03Z")

</div>

No, it uses the same post rendering as Discourse. We don’t load all the posts at once. 🙂

---

<div class="post-metadata">

### Author: ![charleswalter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/charleswalter/32/116433_2.png) [@charleswalter](https://meta.discourse.org/u/charleswalter)
#### Post date: [April 29, 2016, 9:11pm UTC](https://meta.discourse.org/t/nice-work-on-dfp-plugin-update/43422/7 "2016-04-29T21:11:49Z")

</div>

Whew. Okay, so that makes me feel better and likely explains why I could sometimes see the ads loading if i scrolled down fast.

BTW, not sure if this is the case, but we should ensure that for the output that we use for search engine indexing, that we do not include our ad calls.
