Skip to content

Commit c21ebc0

Browse files
committed
ADD release 0.6.5
1 parent 31f2ff6 commit c21ebc0

11 files changed

+132
-99
lines changed

README.md

+5-12
Original file line numberDiff line numberDiff line change
@@ -760,33 +760,26 @@ Spotlight.show([ /* Gallery */ ],{
760760
```
761761

762762
<a name="notes" id="notes"></a>
763-
## Note
763+
## Preload Library / Async Load
764764

765-
It is very common to load the library right before the closing body tag of your document.
766-
767-
> If you like to override css classes for custom styling you may need to add _"!important"_ flag to the css property value.
765+
> If you like to override css classes for custom styling you may need to add ___!important___ flag to the css property value.
768766
769767
```html
770768
<html>
771769
<head>
772770
<title></title>
771+
<link rel="preload" href="spotlight.bundle.js" as="script">
773772
</head>
774773
<body>
775774
<!--
776775
CONTENT
777776
-->
778-
<script src="spotlight.bundle.js"></script>
777+
<script src="spotlight.bundle.js" async></script>
779778
</body>
780779
</html>
781780
```
782781

783-
Load library as async:
784-
785-
```html
786-
<script src="spotlight.bundle.js" async></script>
787-
```
788-
789-
Initialize Spotlight manually (once):
782+
Initialize library manually (once):
790783

791784
```js
792785
Spotlight.init();

demo/spotlight.bundle.js

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/spotlight.cdn.js

+30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)