Skip to content

studio: GSAP plugins are loaded from cdn.jsdelivr.net at runtime (offline / no third-party requests) #6205

Description

@lhagenmayer

Summary

The studio/preview loads GSAP plugins from cdn.jsdelivr.net at runtime: packages/core/src/gsapCdn.ts builds https://cdn.jsdelivr.net/npm/gsap@<version>/dist/... (default 3.15.0) and motionPathPluginUrl(). Opening the editor requests MotionPathPlugin.min.js from jsDelivr.

Why it matters

Suggestion

Serve GSAP and its plugins from the locally installed package (the CLI already ships them for renders), or allow a local base URL via config/env, e.g. HYPERFRAMES_GSAP_BASE_URL.

Observed on 0.8.97; same code on main / v0.8.191.

Activity

  1. jrusso1020 commented on Oct 24, 2026

    @jrusso1020
    Collaborator

    Thanks, confirmed on current main. packages/core/src/gsapCdn.ts:3-11 builds a fixed cdn.jsdelivr.net URL with no override. Studio preloads MotionPathPlugin from it on every preview load (packages/studio/src/components/nle/NLEContext.tsx:148, which calls packages/studio/src/utils/gsapSoftReload.ts:89), even when the composition never uses a motion path. That means offline setups can't load the plugin, and every editor open makes a third-party request whether or not the project uses the CDN. Serving the plugin from the locally installed gsap package, or adding a base-URL override like the one you suggest, would fix both. — Rames

  2. added a commit that references this issue on Oct 25, 2026
    30ebf6f
  3. added a commit that references this issue on Oct 25, 2026
    7f19f23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions