Title: Remove duplicate scripts
Last modified: August 18, 2016

---

# Remove duplicate scripts

 *  [Joe](https://wordpress.org/support/users/seifi/)
 * (@seifi)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/remove-duplicate-scripts/)
 * I’ve been playing with [YSlow](http://www.seifi.org/server/yslow-review-the-firebug-addon.html)
   and noticed that the plugin ads the JS include tag once for each ad on the page,
   so If I have 3 ads, I have 3 script tags pointing to [http://pagead2.googlesyndication.com/pagead/show_ads.js](http://pagead2.googlesyndication.com/pagead/show_ads.js),
   which YSlow is complaining about.
 * Would it be possible to add logic to only include the script on the 1st banner?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Liew Cheon-Fong](https://wordpress.org/support/users/lcf/)
 * (@lcf)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/remove-duplicate-scripts/#post-599690)
 * Hmm.. instead of putting only on the 1st banner, I think it is better to put 
   on the footer of the page.
 *  [mutube](https://wordpress.org/support/users/mutube/)
 * (@mutube)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-scripts/#post-599702)
 * As I understand it it’s the show_ad.js code that actually generates the advert–
   if you only include it once you’ll only get one ad.
 * Or am I missing something? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove duplicate scripts’ is closed to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 2 replies
 * 3 participants
 * Last reply from: [mutube](https://wordpress.org/support/users/mutube/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/remove-duplicate-scripts/#post-599702)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
