Skip to content

Commit 2bcb688

Browse files
committed
Middle school - loads as non-blocking, but has multiple dependents
1 parent 5bfcf34 commit 2bcb688

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@
2828
return false;
2929
}
3030
var vendor = document.getElementById('script-vendor');
31-
$script([vendor.dataset.jquery], 'jquery');
32-
$script.ready('jquery', function(){
33-
$script([vendor.dataset.slick], function(){
31+
$script(vendor.dataset.jquery, function () {
32+
$script(vendor.dataset.slick, function () {
3433
$(document).ready(function() {
3534
var carousel = $('.js-carousel');
3635
var carouselSlick = carousel.slick(carousel.data());
37-
});
38-
});
39-
});
36+
});
37+
})
38+
})
4039
})();
4140
</script>
4241
<style>img{width:100%}</style>

0 commit comments

Comments
 (0)