listerner content loaded js

JavaScript
window.addEventListener('DOMContentLoaded', (event) => {
    console.log('DOM fully loaded and parsed');
});

Source

Also in JavaScript: