@ -503,17 +503,39 @@ function init_load_more() {
}
//</endless_mode>
if ( document . addEventListener ) { //jQuery not ready yet
function init _all ( ) {
if ( ! ( window . $ && window . shortcut && ( ( ! full _lazyload ) || $ . fn . lazyload ) ) ) {
if ( window . console ) {
console . log ( 'Waiting for JS…' ) ;
}
window . setTimeout ( init _all , 50 ) ; //Wait for all js to be loaded
return ;
}
$stream = $ ( '#stream' ) ;
init _posts ( ) ;
init _column _categories ( ) ;
init _shortcuts ( ) ;
init _stream _delegates ( $stream ) ;
init _nav _entries ( ) ;
init _templates ( ) ;
init _notifications ( ) ;
init _actualize ( ) ;
init _load _more ( ) ;
if ( window . console ) {
console . log ( 'Init done.' ) ;
}
}
if ( document . readyState && document . readyState !== 'loading' ) {
if ( window . console ) {
console . log ( 'Immediate init…' ) ;
}
init _all ( ) ;
} else if ( document . addEventListener ) {
document . addEventListener ( 'DOMContentLoaded' , function ( ) {
$stream = $ ( '#stream' ) ;
init _posts ( ) ;
init _column _categories ( ) ;
init _shortcuts ( ) ;
init _stream _delegates ( $stream ) ;
init _nav _entries ( ) ;
init _templates ( ) ;
init _notifications ( ) ;
init _actualize ( ) ;
init _load _more ( ) ;
if ( window . console ) {
console . log ( 'Waiting for DOMContentLoaded…' ) ;
}
init _all ( ) ;
} , false ) ;
}