Set extent on layer to limit number of tiles requested, this will only have effect after the first load since we only know the extent after the GetCapabilities response has come back, and the layer has then already been added to the map
Also set extent on layer in example2
Merge pull request #2 from bartvde/ol3-upgrade-master

Set extent on layer to limit number of tiles requested