This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
|
export default function ready(loaded) {
|
|
if (['interactive', 'complete'].includes(document.readyState)) {
|
|
loaded();
|
|
} else {
|
|
document.addEventListener('DOMContentLoaded', loaded);
|
|
}
|
|
}
|