--- id: browser title: Browser --- > KaTeX supports all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 9–11. ## CDN (Content Delivery Network) Use CDN to deliver KaTeX to your project: ```html ``` KaTeX also provides minified versions: ```html ``` > The loading of scripts are [deferred using `defer` attribute](https://developer.mozilla.org/en/HTML/Element/script#Attributes) to speed up page rendering. The `katex` object will be available after [`DOMContentLoaded` event is fired on the `document`](https://developer.mozilla.org/ko/docs/Web/Reference/Events/DOMContentLoaded). If you do not use `defer`, `katex` object will be available after corresponding `script` tag. > If KaTeX is not used immediately or not critical, it is possible to load KaTeX asynchronously. Add [`async` attribute](https://developer.mozilla.org/en/HTML/Element/script#Attributes) to `script` and use [`rel="preload"` and `onload` attribute](https://github.com/filamentgroup/loadCSS) on `link`. > You can prefetch KaTeX fonts to prevent FOUT or FOIT. Use [Web Font Loader](https://github.com/typekit/webfontloader) or add [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content) to `head`. (Note that only few browsers [support `rel="preload"`](https://caniuse.com/#feat=link-rel-preload) and they all support WOFF2 so preloading WOFF2 fonts is enough.) You can use Chrome DevTools Network panel or similar to find out which fonts are used. ## Download & Host Things Yourself Download a [KaTeX release](https://github.com/Khan/KaTeX/releases), copy `katex.js`, `katex.css` (or `katex.min.js` and `katex.min.css` to use minified versions), and the `fonts` directory, and include like above. You can also build from source. See [Building from Source](node.md#building-from-source) for more details. ## Bundler Use [Node.js package managers](node.md) to install KaTeX and require it in your project. Then bundle using bundlers like [webpack](https://webpack.js.org/) or [rollup.js](https://rollupjs.org/). Note that you have to bundle the stylesheet (`katex.css`) or include it manually.