我正在使用Google PageSpeed tool测试网页加载。结果显示“消除了对于
的渲染阻止JavaScript和CSS的重叠内容”query1=db...;
ids=[];
query1.forEach(function(d) { ids.push(d._id.variant); });
query2=db.collection.aggregate( {$match: { variant_id:{$in: ids } } } );
源代码是:
<script type='text/javascript' src='http://example.com/wp-includes/js/jquery/jquery.js?ver=1.11.2'></script>
<script type='text/javascript' src='http://example.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
我热衷于添加异步或延迟标记。我怎样才能做到这一点?
答案 0 :(得分:0)