UNPKG

561 BJavaScriptView Raw
1"use strict";exports.__esModule=true;exports.displayContent=displayContent;// This function is used to remove Next.js' no-FOUC styles workaround for using
2// `style-loader` in development. It must be called before hydration, or else
3// rendering won't have the correct computed values in effects.
4function 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();}});}
5//# sourceMappingURL=fouc.js.map
\No newline at end of file