Skip to content

mhdehghanzadeh/fontawesome

Repository files navigation

Font Awesome 5 Pro

Now, by using jsdelivr.net.

Steps:

  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.
  6. (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)

Examples:

https://raw.githubusercontent.com/<username>/<repo>/<branch>/path/to/file.css

DEMO: https://raw.githubusercontent.com/duyplus/fontawesome-pro/master/css/all.min.css

Use this URL to get the latest version:

http://cdn.jsdelivr.net/gh/<username>/<repo>/path/to/file.css
https://cdn.jsdelivr.net/gh/duyplus/fontawesome-pro/css/all.min.css

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/duyplus/fontawesome-pro/css/all.min.css">

Use this URL to get a specific version or commit hash:

http://cdn.jsdelivr.net/gh/<username>/<repo>@<version or hash>/path/to/file.css
https://cdn.jsdelivr.net/gh/duyplus/[email protected]/css/all.min.css

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/duyplus/[email protected]/css/all.min.css">

For production environments, consider targeting a specific tag or commit-hash rather than the branch. Using the latest link may result in long-term caching of the file, causing your link to not be updated as you push new versions. Linking to a file by commit-hash or tag makes the link unique to version.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages