diff options
| author | XhmikosR <[email protected]> | 2019-02-24 15:42:18 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-24 15:42:18 +0200 |
| commit | 5ad21218192ddab3d798203065ac947cce03d76d (patch) | |
| tree | 18d22047d15fe386092523fee5f4b30bbc9e95bc /js/tests/visual/carousel.html | |
| parent | 5328d0db0d3ce909dca12b9ded4356da6f5971e4 (diff) | |
| download | bootstrap-5ad21218192ddab3d798203065ac947cce03d76d.tar.xz bootstrap-5ad21218192ddab3d798203065ac947cce03d76d.zip | |
Remove DOMContentLoaded. (#28337)
There's no reason for us to wait here.
Diffstat (limited to 'js/tests/visual/carousel.html')
| -rw-r--r-- | js/tests/visual/carousel.html | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/js/tests/visual/carousel.html b/js/tests/visual/carousel.html index fba62866d..7dfc05ec5 100644 --- a/js/tests/visual/carousel.html +++ b/js/tests/visual/carousel.html @@ -54,19 +54,18 @@ <script src="../../dist/util.js"></script> <script src="../../dist/carousel.js"></script> <script> - document.addEventListener('DOMContentLoaded', function () { - var t0, t1; - var carousel = document.getElementById('carousel-example-generic') + var t0 + var t1 + var carousel = document.getElementById('carousel-example-generic') - // Test to show that the carousel doesn't slide when the current tab isn't visible - // Test to show that transition-duration can be changed with css - carousel.addEventListener('slid.bs.carousel', function (event) { - t1 = performance.now() - console.log('transition-duration took ' + (t1 - t0) + 'ms, slid at ', event.timeStamp) - }) - carousel.addEventListener('slide.bs.carousel', function () { - t0 = performance.now() - }) + // Test to show that the carousel doesn't slide when the current tab isn't visible + // Test to show that transition-duration can be changed with css + carousel.addEventListener('slid.bs.carousel', function (event) { + t1 = performance.now() + console.log('transition-duration took ' + (t1 - t0) + 'ms, slid at ', event.timeStamp) + }) + carousel.addEventListener('slide.bs.carousel', function () { + t0 = performance.now() }) </script> </body> |
