next
Version:
The React Framework
5 lines • 561 B
JavaScript
exports.__esModule=true;exports.displayContent=displayContent;// This function is used to remove Next.js' no-FOUC styles workaround for using
// `style-loader` in development. It must be called before hydration, or else
// rendering won't have the correct computed values in effects.
function displayContent(callback){;(window.requestAnimationFrame||setTimeout)(function(){for(var x=document.querySelectorAll('[data-next-hide-fouc]'),i=x.length;i--;){x[i].parentNode.removeChild(x[i]);}if(callback){callback();}});}
//# sourceMappingURL=fouc.js.map
;