Show hide by jQuery and and write js in creating customizer in wp-admin panel

Continue reading Show hide by jQuery and and write js in creating customizer in wp-admin panel

Advertisements

Get Page Load Time

window.onload = function () {
var loadTime = window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart;
//console.log(‘Page load time is ‘+ loadTime);
document.getElementById(“speed”).innerHTML = + loadTime;
}

 

<h6>About </span> <span><?php echo $count; ?> results</span>  ( 0.<span id=”speed”></span> seconds )</h6>