rasmusjp / umbraco-multi-url-picker

Multi Url Picker for Umbraco 7
MIT License
31 stars 29 forks source link

Prevent extra calls to server #38

Closed Spijkerboer closed 6 years ago

Spijkerboer commented 8 years ago

Hi,

We had some issues with the picker. For some reason we got a lot of 404 errors. It turned out the server gets a lot of entity requests with no id in there.

So I took a look at the js en changed it a little. If the id collection has no id's there will be a request to the server. First check if there are any id's, then make a request to the server.

ronaldbarendse commented 6 years ago

This seems legit! Only calling the entity resource service when needed should indeed keep the server requests down and load faster...

rasmusjp commented 6 years ago

Duplicate of #37