9951 explained code solutions for 126 technologies


chrome-extensionHow to execute content script after page content is loaded


document.addEventListener('DOMContentLoaded', function() {
  console.log('loaded');
});ctrl + c
document.addEventListener

listen for a document event

DOMContentLoaded

event triggers when page is fully loaded

console.log('loaded')

place your code here to execute after page load is complete