From 70e60cd93fe26e9cde1e350e3236578fa5abfe48 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 29 Jun 2021 22:17:16 +0100 Subject: [PATCH] Remove whitespace from plugin text https://github.com/Jermolene/TiddlyWiki5/pull/5708#issuecomment-870749131 Has no effect on functionality, but makes the prerelease index.html go from 6821151 to 6680944 bytes (saving 6680944-6821151=-140,207 bytes or (6680944-6821151)/6680944=2.1% --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 8d74b2e1b..1288cc22d 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1985,7 +1985,7 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) { pluginInfo.dependents = pluginInfo.dependents || []; pluginInfo.type = "application/json"; // Set plugin text - pluginInfo.text = JSON.stringify({tiddlers: pluginInfo.tiddlers},null,4); + pluginInfo.text = JSON.stringify({tiddlers: pluginInfo.tiddlers}); delete pluginInfo.tiddlers; // Deserialise array fields (currently required for the dependents field) for(var field in pluginInfo) {