Skip to content

Commit

Permalink
Update readme to use 'defer'
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbarnum4 committed Aug 6, 2024
1 parent b966a41 commit cf87009
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ This is a simple package that includes some additional style/functionality to th
To include this package in your project, simply add the following to the `<head>` of your html test file

### Styles

```html
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/mocha.css"
/>
```

### Syntax highlighting

```html
<script src="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/injectStyles.js"></script>
<script src="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/injectStyles.js"></script>
```

### Example

```html
<!DOCTYPE html>
<html>
Expand All @@ -29,7 +33,10 @@ To include this package in your project, simply add the following to the `<head>
href="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/mocha.css"
/>

<script src="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/injectStyles.js"></script>
<script
src="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/injectStyles.js"
defer
></script>

...
</head>
Expand All @@ -40,7 +47,9 @@ To include this package in your project, simply add the following to the `<head>
## Preview

### Light Mode

![Preview Light Mode](img/light-mode-preview.png)

### Dark Mode

![Preview Light Mode](img/dark-mode-preview.png)

0 comments on commit cf87009

Please sign in to comment.