Skip to content

Commit

Permalink
ADD release 0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ts-thomas committed Aug 25, 2019
1 parent 31f2ff6 commit c21ebc0
Show file tree
Hide file tree
Showing 11 changed files with 132 additions and 99 deletions.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -760,33 +760,26 @@ Spotlight.show([ /* Gallery */ ],{
```

<a name="notes" id="notes"></a>
## Note
## Preload Library / Async Load

It is very common to load the library right before the closing body tag of your document.

> If you like to override css classes for custom styling you may need to add _"!important"_ flag to the css property value.
> If you like to override css classes for custom styling you may need to add ___!important___ flag to the css property value.
```html
<html>
<head>
<title></title>
<link rel="preload" href="spotlight.bundle.js" as="script">
</head>
<body>
<!--
CONTENT
-->
<script src="spotlight.bundle.js"></script>
<script src="spotlight.bundle.js" async></script>
</body>
</html>
```

Load library as async:

```html
<script src="spotlight.bundle.js" async></script>
```

Initialize Spotlight manually (once):
Initialize library manually (once):

```js
Spotlight.init();
Expand Down
30 changes: 15 additions & 15 deletions demo/spotlight.bundle.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions demo/spotlight.cdn.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c21ebc0

Please sign in to comment.