You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several cases where it is useful to use this plugin. The first is when you have a div populated asynchronous and the data waiting is very slow. The effect you have is an empty block awaiting the data like this.
<divclass="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In consectetur metus in nibh porttitor ultricies. Vestibulum placerat blandit interdum.
53
+
</div>
54
+
</div>
55
+
</div>
56
+
```
57
+
58
+
If you are creating a new page and want to give the skeleton screen effects, you have just create the template on the page and leave the work dirty to the Scheletrone.
<divclass="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In consectetur metus in nibh porttitor ultricies. Vestibulum placerat blandit interdum.
68
+
</div>
69
+
</div>
70
+
</div>
71
+
```
72
+
and
73
+
74
+
```javascript
75
+
var instance =$('#myDIV').scheletrone({
76
+
url :'http://url/to/file',
77
+
ajaxData : {},
78
+
});
79
+
```
80
+
81
+
if you want to manipulate the data received via ajax or simply make the call use the onComplete callback function.
82
+
83
+
```javascript
84
+
var instance =$('#myDIV').scheletrone({
85
+
incache:true,
86
+
onComplete:function() {
87
+
//here you can insert the code to populate the div
88
+
89
+
}
90
+
});
91
+
```
92
+
93
+
23
94
### Getting started
24
95
25
96
See jquery.skeleton.loader plugin in action [DEMO](https://rawgit.com/enbifa/jquery.skeleton.loader/master/example/index.html):
@@ -230,72 +301,3 @@ var instance = $('#myDIV').scheletrone({
230
301
}
231
302
});
232
303
```
233
-
234
-
### When using lo scheletrone
235
-
236
-
There are several cases where it is useful to use this plugin. The first is when you have a div populated asynchronous and the data waiting is very slow. The effect you have is an empty block awaiting the data like this.
<divclass="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In consectetur metus in nibh porttitor ultricies. Vestibulum placerat blandit interdum.
263
-
</div>
264
-
</div>
265
-
</div>
266
-
```
267
-
268
-
If you are creating a new page and want to give the skeleton screen effects, you have just create the template on the page and leave the work dirty to the Scheletrone.
<divclass="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit. In consectetur metus in nibh porttitor ultricies. Vestibulum placerat blandit interdum.
278
-
</div>
279
-
</div>
280
-
</div>
281
-
```
282
-
and
283
-
284
-
```javascript
285
-
var instance =$('#myDIV').scheletrone({
286
-
url :'http://url/to/file',
287
-
ajaxData : {},
288
-
});
289
-
```
290
-
291
-
if you want to manipulate the data received via ajax or simply make the call use the onComplete callback function.
292
-
293
-
```javascript
294
-
var instance =$('#myDIV').scheletrone({
295
-
incache:true,
296
-
onComplete:function() {
297
-
//here you can insert the code to populate the div
0 commit comments