Skip to content

Commit 3967761

Browse files
committed
fix(view): condense rendered HTML
Setting ouput:indent to "no" only works for constructed nodes at the moment. This still lowers the gzipped load by around 10% on results pages.
1 parent b4b23c0 commit 3967761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/xar-resources/modules/view.xql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";
1414
declare option output:method "html";
1515
declare option output:html-version "5.0";
1616
declare option output:media-type "text/html";
17+
declare option output:indent "no";
1718

1819
declare function local:lookup ($func as xs:string, $arity as xs:integer) as function(*)? {
1920
function-lookup(xs:QName($func), $arity)

0 commit comments

Comments
 (0)