Support file urls and lazy loading.