|
|
|
@ -98,7 +98,7 @@ class Index_gm extends CI_Controller
|
|
|
|
|
//$js_content.= $link_script->innertext;//js的内容
|
|
|
|
|
// $js_content.= $link_script;//js的内容,包含<script>标签
|
|
|
|
|
//含有$表示调用了jquery的函数,添加延迟加载defer
|
|
|
|
|
//包含gtm的js引入就跳出循环
|
|
|
|
|
//包含gtm的js引入就跳出本次循环
|
|
|
|
|
if(strpos($link_script, 'https://www.googletagmanager.com/gtm.js')){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
@ -326,8 +326,6 @@ class Index_gm extends CI_Controller
|
|
|
|
|
$css_content .= $style->innertext;
|
|
|
|
|
$style->outertext = '';
|
|
|
|
|
}
|
|
|
|
|
print_r($this->html_object->find('style'));
|
|
|
|
|
die();
|
|
|
|
|
|
|
|
|
|
//把网页内容和css提交到purifycss处理
|
|
|
|
|
$purifycss_server = 'http://158.177.67.52:33033/';
|
|
|
|
|