New to Telerik UI for Blazor? Download free 30-day trial

Telerik UI for Blazor CDN

The Telerik Blazor CDN is a complimentary service that can be used in development and production environments. This article describes the CDN URLs and what to keep in mind when using CDN in general.

The CDN hosts two kinds of static client assets for the Telerik UI for Blazor components:

CSS Theme URLs

The CDN hosts swatches of the popular built-in CSS themes. The file URLs look like this:<COMPONENT-VERSION>/kendo-theme-<THEME-NAME>/swatches/<THEME-NAME>-<SWATCH-NAME>.css

The separate font icons stylesheet URL looks like this:<COMPONENT-VERSION>/kendo-font-icons/font-icons.css

Here are a few examples:

Telerik UI for Blazor CDN URLs for CSS themes

<!-- Ocean Blue swatch of the Default theme -->
<link rel="stylesheet" href="" />

<!-- Main swatch of the Bootstrap theme -->
<link rel="stylesheet" href="" />

<!-- Font icon stylesheet -->
<link rel="stylesheet" href="" />

JavaScript URLs

The CDN hosts the JavaScript (JSInterop) file of Telerik UI for Blazor. The file URL looks like this:<COMPONENT-VERSION>/telerik-blazor.min.js

Telerik UI for Blazor CDN URL for JavaScript

<script src=""></script>

Pros and Cons of Using CDN

The benefits of using a CDN in Blazor apps are:

  • Possible performance gains in the application loading time. Blazor apps are single page applications and browsers rely on cache by default, so this benefit is marginal and relates only to users that open the application for the first time.
  • Avoidance of browser caching issues after component version upgrades. The CSS and JS files change with every component version, and so do the CDN URLs. This URL change guarantees that browsers will reload the static assets.

The drawbacks of using a CDN are:

  • Additional component version upgrade steps. You must change the version number in the URL, otherwise the application can display broken UI or throw JavaScript errors.
  • A CDN is a critical external dependency for your app. Regardless of the claimed uptime, you must implement a CDN fallback for cases when the CDN is not accessible to your users due to geographical, networking or system issues.

Next Steps

See also

In this article