To ensure the best connection with your Apple TV, turn off “Background App Refresh” on your iPad and iPhone.
This prevents apps running in the background from using your wireless bandwidth while you're using Airplay for screen mirroring on your Apple TV.
When you're done screen mirroring, you probably want to turn Background App Refresh back on. Otherwise you may not get e-mail alerts, etc.