@WorkerThread
  public static LottieResult<LottieComposition> fromUrlSync(Context context, String url, @Nullable String cacheKey) {
    final LottieComposition cachedComposition = cacheKey == null ? null : LottieCompositionCache.getInstance().get(cacheKey);
    if (cachedComposition != null) {
      return new LottieResult<>(cachedComposition);
    }
    LottieResult<LottieComposition> result = L.networkFetcher(context).fetchSync(context, url, cacheKey);
    if (cacheKey != null && result.getValue() != null) {
      LottieCompositionCache.getInstance().put(cacheKey, result.getValue());
    }
    return result;
  }
Fetch an animation from an http url. Once it is downloaded once, Lottie will cache the file to disk for
future use. Because of this, you may call `fromUrl` ahead of time to warm the cache if you think you
might need an animation in the future.
lottie/src/main/java/com/airbnb/lottie/LottieCompositionFactory.java