https://github.com/optimizely/experimentation-support-public
This is a repo for the Optimizely Experimenation App Support team, which can be used to share handy code snippets, extensions, etc. both internally and externally.
https://github.com/optimizely/experimentation-support-public
Last synced: 5 days ago
JSON representation
This is a repo for the Optimizely Experimenation App Support team, which can be used to share handy code snippets, extensions, etc. both internally and externally.
- Host: GitHub
- URL: https://github.com/optimizely/experimentation-support-public
- Owner: optimizely
- Created: 2024-07-29T05:49:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T06:02:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-12T02:09:56.774Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# experimentation-support-public
This is a repo for the Optimizely Experimenation App Support team, which can be used to share handy code snippets, extensions, etc. both internally and externally.
## Instructions for hosting static files (JS/CSS/...) on GitHub and referencing them directly using jsdelivr.com
1. Find your link on GitHub, and click to the "Raw" version.
2. Copy the URL.
3. Change raw.githubusercontent.com to cdn.jsdelivr.net
4. Insert /gh/ before your username.
5. Remove the branch name.
(Optional) Insert the version you want to link to, as @version (if you do not do this, you will get the latest - which may cause long-term caching)
**Example**:
https://raw.githubusercontent.com/optimizely/experimentation-support-public/main/cat-and-dog/cat.js
becomes:
https://cdn.jsdelivr.net/gh/optimizely/experimentation-support-public/cat-and-dog/cat.js
This solution was found on https://stackoverflow.com/a/18049842