File tree Expand file tree Collapse file tree
vaadin/src/main/java/software/xdev/sse/vaadin/xhrreload Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # 2.5.1
2+ * Various performance improvements
3+ * Updated dependencies
4+
15# 2.5.0
26* New module ` caching-validation-provider `
37
Original file line number Diff line number Diff line change 2121import java .util .Optional ;
2222import java .util .regex .Pattern ;
2323
24+ import org .jsoup .nodes .DataNode ;
2425import org .jsoup .nodes .Document ;
2526import org .jsoup .nodes .Element ;
2627import org .slf4j .Logger ;
@@ -65,7 +66,8 @@ public XHRReloadVaadinServiceInitListener(final XHRReloadConfig config)
6566
6667 this .scriptElement = new Element ("script" )
6768 .attr ("type" , "text/javascript" )
68- .html (scriptContents );
69+ // This is effectively the same as .html() but a lot faster because no HTML paring is done
70+ .appendChild (new DataNode (scriptContents ));
6971 LOG .trace ("Built scriptElement: {}" , this .scriptElement );
7072 }
7173 catch (final IOException e )
You can’t perform that action at this time.
0 commit comments