External-js file naming adjusted. import docs form tw5.com. make extrnal-js more visible (#7361)

* external-js file naming adjusted. import docs form tw5.com. make external-js more visible

* add comment about doc usage in server-external-js edition

* add changes suggested by cdruan

* change modifed date to start vercel rebuild process
This commit is contained in:
Mario Pietsch
2023-05-06 12:37:05 +02:00
committed by GitHub
parent a1b706a945
commit b61aef27d7
6 changed files with 30 additions and 5 deletions

View File

@@ -1,9 +1,13 @@
created: 20180905075846391
modified: 20221207112242775
modified: 20230319130830880
tags: [[WebServer Guides]]
title: Using the external JavaScript template
type: text/vnd.tiddlywiki
<!--
This tiddler is also included in the "server-external-js" edition. Take care before editing or moving it.
-->
You can use a special template to externalise ~TiddlyWiki's core code into a separate file. This configuration allows the browser to cache the core for improved efficiency.
! Background
@@ -60,7 +64,7 @@ The "server-external-js" edition lets you save the snapshot from the command lin
tiddlywiki YOUR_WIKI_FOLDER --build index
```
The files `index.html` and `tiddlywikicore-5.x.x.js` will be saved in your wiki folder's `output` directory.
The files `external-5-x-x.html` and `tiddlywikicore-5.x.x.js` will be saved in your wiki folder's `output` directory.
!! Obtaining the ~TiddlyWiki core in the browser