Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/362.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 无法在我的网站上清除FOUC_Javascript_Jquery_Html_Css_Fouc - Fatal编程技术网

Javascript 无法在我的网站上清除FOUC

Javascript 无法在我的网站上清除FOUC,javascript,jquery,html,css,fouc,Javascript,Jquery,Html,Css,Fouc,我正在努力与我的网站上的非风格内容一闪而过。首次访问时,您会在未加载到屏幕上之前看到未设置样式的内容: 您可以在此处亲自查看: 我不能流利地使用html,因此我需要一些详细的帮助: 这是我的密码: <html lang="en"> <head> <title> Galaxy Node Server Hosting | Premium Minecraft Hosting For $2.99! </title> <meta htt

我正在努力与我的网站上的非风格内容一闪而过。首次访问时,您会在未加载到屏幕上之前看到未设置样式的内容:

您可以在此处亲自查看:

我不能流利地使用html,因此我需要一些详细的帮助:

这是我的密码:

<html lang="en">
<head>
    <title> Galaxy Node Server Hosting | Premium Minecraft Hosting For $2.99! </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css;">
    <meta name="Author" content="Steve">
    <meta name="Keywords" content="minecraft server hosting, dedicated server     hosting, cheap minecraft server hosting, best minecraft server hosts, minecraft dedicated server hosting, online server hosting, free minecraft server hosting, minecraft server hosts, best minecraft server hosting, dedicated servers hosting, galaxy node">
    <meta name="Description" content="Galaxy Node Server Hosting aims to provide the highest quality Minecraft servers at an extremely low price.
    We have the best customer service of all Minecraft server hosting providers! You will not be disappointed!">
    <body background="http://galaxynode.com/images/background.jpg">
    <link rel="stylesheet" href="galaxynodewebsite_g.css" type="text/css" media="screen,projection,print">  <!--// Document Style //-->
    <link rel="stylesheet" href="index_p.css" type="text/css" media="screen,projection,print">  <!--// Page Style //-->
</head>

<body>
// body content
</body>
</html>

Galaxy Node服务器托管|高级Minecraft托管只需2.99美元!
//身体内容
有人能确切地告诉我,我可以在这里放什么来阻止东西显示,直到它完全加载?任何修复都会很好!我不懂html,所以请告诉我我可以在这里输入什么,或者我不太懂html或javascript就可以理解的东西。

删除
您创建了另一个
标记

在加载主体时,实际上是在加载样式表。您看到flash是因为尚未应用css属性。删除额外的
标记后,样式表将成为
的一部分,并将首先加载

如果您想保留该背景,请在CSS中为主体添加属性。e、 g

body
{
   background-image: url('http://galaxynode.com/images/background.jpg');
}
删除
您已经创建了另一个
标记

在加载主体时,实际上是在加载样式表。您看到flash是因为尚未应用css属性。删除额外的
标记后,样式表将成为
的一部分,并将首先加载

如果您想保留该背景,请在CSS中为主体添加属性。e、 g

body
{
   background-image: url('http://galaxynode.com/images/background.jpg');
}

这很难看,但是您可以直接在页面中嵌入样式信息,以便首先加载它。或者,您可以使用脚本加载样式信息并将其写入页面,因为页面将阻止加载,直到脚本执行为止。您的HTML无效,包含2个
标记。这很难看,但您可以将样式信息直接嵌入页面中,以便首先加载。或者,您可以使用脚本加载样式信息并将其写入页面,因为页面将阻止加载,直到脚本执行为止。您的HTML无效,包含2个
标记。