setHtml(s) isn't suitable for big pages, because it converts passed data into Url of data: scheme, so easily can reach Url length limit. Why not use load(url) function to display such a file? For example: