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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user