introduce no-javascript message, manual backport of #6202 and #10944, fix #10841