You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One cool feature of Pym was that you could just load the library and it'd do the auto initialization without an explicit call. It was purposively left out of this to ensure no surprises (and to keep tree shaking functional), but it'd be cool to be able to import a specific version of the library that did do this.
import`@newswire/frames/auto`;
And...
<scriptsrc="https://unpkg.com/@newswire/frames/auto.js"></script><!-- or --><scriptsrc="https://unpkg.com/@newswire/frames/auto/index.js"></script>
The text was updated successfully, but these errors were encountered:
This would be the feature that would let NPR stations use Frames, as we have no control over the CMS and script tags pulling from other sites are allowed, but script tags with content inside them are scrubbed. I'd love to potentially help make this happen.
Hey @NathanLawrence! Agreed. I've had a few drafts of this floating around and I'm game to finally push one over the edge!
How would you imagine it'd be best to use it? Are you looking for a Pym like experience where you could just point at a hosted version and go? Or do you think you'd have it hosted somewhere on your end?
I'm also assuming in your use case you wouldn't ever expect to interact with frames on the page, right? This is been (somewhat) what has held me up — whether folks expect to be able to interact with frames in the auto-initialized mode.
One cool feature of Pym was that you could just load the library and it'd do the auto initialization without an explicit call. It was purposively left out of this to ensure no surprises (and to keep tree shaking functional), but it'd be cool to be able to import a specific version of the library that did do this.
And...
The text was updated successfully, but these errors were encountered: