Google审计问题 [英] Google Audit Question

查看:257
本文介绍了Google审计问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


以下外部CSS文件在文档头中的外部JavaScript
文件之后包含
。为了确保
CSS文件并行下载,
总是在
外部JavaScript之前包含外部CSS。在
外部CSS文件和另一
资源之间的头部发现1个内联脚本
block。要允许并行
下载,请在外部CSS文件之前移动内联脚本
,或者在
之后移动下一个资源。


我的HTML是:



 < head> 

< link rel =Stylesheethref =gStyle.css/>
< script type =text / javascriptsrc =gMain.js>< / script>
< script type =text / javascriptlanguage =javascript>

//您的图表对象
var myChart;

//保存所有图表的功能
函数initCharts(){

myChart = new ganttChart(chart1);

myChart.gAddBar(Dynamic!,22/3/2010,3/4/2010);

myChart.gLoadData(去商店* 4/3/2010 * 19/3/2010 *看电视* 9/3/2010 * 23/3/2010 *看电视* 1 / 3/2010 * 23/3/2010 *观看电视* 18/3/2010 * 28/3/2010 * END INPUT * 1/3/2010 * 9/3/2010);

myChart.gDraw();

myChart.gChangeBarColour(1,#dd2200);
myChart.gChangeBarColour(2,#9900ee);
myChart.gChangeBarColour(3,#00dd00);
myChart.gChangeBarColour(4,#ffbb00);
myChart.gChangeBarColour(5,#00aa99);

}

< / script>

< / head>

< body onload =initCharts()>




< div id =chart1class =gContainer>


< / div>

< div id =db>< / div>

< / body>



身体内联脚本?

解决方案

检查页面元素。可能您的Chrome扩展程序正在向HEAD中的页面动态添加脚本。


The following external CSS files were included after an external JavaScript file in the document head. To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript. 1 inline script block was found in the head between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resource.

My HTML is:

<head>

    <link rel="Stylesheet" href="gStyle.css" />        
    <script type="text/javascript" src="gMain.js"></script>
    <script type="text/javascript" language="javascript">

       // Your chart object(s)
        var myChart;

        // Function to hold all chart creation
        function initCharts() {

            myChart = new ganttChart("chart1");

            myChart.gAddBar("Dynamic!", "22/3/2010", "3/4/2010");

            myChart.gLoadData("Going to the shop*4/3/2010*19/3/2010*Watching TV*9/3/2010*23/3/2010*Watching TV*1/3/2010*23/3/2010*Watching TV*18/3/2010*28/3/2010*END INPUT*1/3/2010*9/3/2010");

            myChart.gDraw();

            myChart.gChangeBarColour(1, "#dd2200");
            myChart.gChangeBarColour(2, "#9900ee");
            myChart.gChangeBarColour(3, "#00dd00");
            myChart.gChangeBarColour(4, "#ffbb00");
            myChart.gChangeBarColour(5, "#00aa99");

        }

    </script>

</head>

<body onload="initCharts()">




    <div id="chart1" class="gContainer">     


    </div>

    <div id="db"></div>

</body>

Is it getting confused between the body inline script?

解决方案

Inspect the page elements. Probably your Chrome extensions are dynamically adding scripts to the page in HEAD.

这篇关于Google审计问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆