1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-29 08:10:47 +02:00

Remove DOMContentLoaded. (#28337)

There's no reason for us to wait here.
This commit is contained in:
XhmikosR
2019-02-24 15:42:18 +02:00
committed by GitHub
parent 5328d0db0d
commit 5ad2121819
5 changed files with 232 additions and 242 deletions

View File

@@ -41,12 +41,10 @@
<script src="../../dist/tooltip.js"></script>
<script src="../../dist/popover.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
[].slice.call(document.querySelectorAll('[data-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
})
[].slice.call(document.querySelectorAll('[data-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
</script>
</body>
</html>