Hello, SwissGL | Fil | Observable
ojs
ojs
Author
Fil
@fil
Vocateur.
Comments (4)
Fabian Iwand
Feb 21, 2023
Did you intentionally reference main instead of a commit hash?
Fil
Feb 21, 2023
no, fixed
Fabian Iwand
Feb 23, 2023
You can also construct a Function instead of calling eval: ``` .then((d) => new Function(d.replace(/(function SwissGL)/, "return $1"))()) ```
Fabian Iwand
Feb 23, 2023
Alternatively require() can be used with githack: ``` SwissGL = require("
https://rawcdn.githack.com/google/swissgl/d690e94/swissgl.js
").catch(() => window.SwissGL) ```
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
3
Follow
Follow
Hello, SwissGL | Fil | Observable