This is on continued research from when I found someone had made a cached file, which was purely
htmlin a
JavaScript file so making it store as a cache before and after loading.
A
JavaScript file can be loaded dynamically and stores it's self for some reason, I noticed during the experimentation of our theme in parts........
Yet someone mentioned they didn't believe it was a good principle and I my self also questioned parts of the idea in terms of the more retrieval of files
Smarty makes and needs to include the longer it takes, which is visible in the
Smarty debug.
So how to go about changing everything to
JavaScript reason for this:
1) When making addition in the standard html theme of JS calling items it is noticeable faster on inputs and then return as
JavaScript is meant for.
2) On concurrent reloading of pages,
JavaScript remains in the browser longer then
Html.
3) the file included is not included by the browser, yet runs through
Smarty, thus making Smarty store the item longer
So on this I decided I prefer
Smarty loading a
JavaScript Template and made it load our whole theme, not parts and tested the speed of inclusion through Smarty's debug, which is the same or faster then
Html or
Tpl to begin.
So making all the addition of a faster loading template file which
JavaScript provides; with less over head for end users and quicker loading times of inputting any data through it.
The file where this is configured in
Xoops is class/theme.php and needs the extension changing, at present I didn't also change the type of data it will find as it is still text/html as the content is the same just now read from a
JavaScript file for the theme.