More code maybe , but it is the correct use of the API. I don't know how much difference it will be once minified