Skip to content

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.

Notifications You must be signed in to change notification settings

optimizely/experimentation-support-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published