fixed total css weight per page
This commit is contained in:
parent
94a475a116
commit
ee71ed3b45
|
|
@ -181,7 +181,7 @@
|
|||
#set($totalImagePageSize = $math.add($totalImagePageSize,$math.toDouble($math.roundTo(3,$math.div($asset.getChild("size").getValue(),1000)))))
|
||||
#elseif ($asset.getChild("type").getValue() == "css")
|
||||
$statsCssWeight.addValue($math.toDouble($math.roundTo(3,$math.div($asset.getChild("size").getValue(),1000))))
|
||||
#set($totalCssPageSize = $math.add($totalImageCssSize,$math.toDouble($math.roundTo(3,$math.div($asset.getChild("size").getValue(),1000)))))
|
||||
#set($totalCssPageSize = $math.add($totalCssPageSize,$math.toDouble($math.roundTo(3,$math.div($asset.getChild("size").getValue(),1000)))))
|
||||
#elseif ($asset.getChild("type").getValue() == "js")
|
||||
$statsJsWeight.addValue($math.toDouble($math.roundTo(3,$math.div($asset.getChild("size").getValue(),1000))))
|
||||
#set($totalJsPageSize = $math.add($totalJsPageSize,$math.toDouble($math.roundTo(3,$math.div($asset.getChild("size").getValue(),1000)))))
|
||||
|
|
|
|||
Loading…
Reference in New Issue