Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Cache the main.js file. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1760a15156df5260b0933a0a6a0e186e |
User & Date: | drh 2017-12-05 13:50:50.938 |
Context
2017-12-05
| ||
15:09 | Change the name of "main.js" to "href.js". Rework the javascript code so that there can be multiple javascript files sourced on an as-needed basis. ... (check-in: 09494b02 user: drh tags: trunk) | |
13:50 | Cache the main.js file. ... (check-in: 1760a151 user: drh tags: trunk) | |
01:30 | Remove code inside of #if 0...#endif. ... (check-in: 7c408d75 user: drh tags: trunk) | |
Changes
Changes to src/style.c.
︙ | ︙ | |||
680 681 682 683 684 685 686 | } @ "noop":0} @ </script> zFooter = skin_get("footer"); if( sqlite3_strlike("%</body>%", zFooter, 0)==0 ){ | | > | | | 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 | } @ "noop":0} @ </script> zFooter = skin_get("footer"); if( sqlite3_strlike("%</body>%", zFooter, 0)==0 ){ @ <script src='%s(g.zBaseURL)/main.js/%S(MANIFEST_UUID)' \ @ type='application/javascript'></script> } if( g.thTrace ) Th_Trace("BEGIN_FOOTER<br />\n", -1); Th_Render(zFooter); if( g.thTrace ) Th_Trace("END_FOOTER<br />\n", -1); /* Render trace log if TH1 tracing is enabled. */ if( g.thTrace ){ cgi_append_content("<span class=\"thTrace\"><hr />\n", -1); cgi_append_content(blob_str(&g.thLog), blob_size(&g.thLog)); cgi_append_content("</span>\n", -1); } /* Add document end mark if it was not in the footer */ if( sqlite3_strlike("%</body>%", zFooter, 0)!=0 ){ @ <script src='%s(g.zBaseURL)/main.js/%S(MANIFEST_UUID)' \ @ type='application/javascript'></script> @ </body> @ </html> } } /* ** Begin a side-box on the right-hand side of a page. The title and |
︙ | ︙ | |||
843 844 845 846 847 848 849 850 851 852 853 854 855 856 | ** Return the javascript */ void page_main_js(void){ Blob mainjs; cgi_set_content_type("application/javascript"); blob_init(&mainjs, builtin_text("main.js"), -1); cgi_set_content(&mainjs); } /* ** WEBPAGE: test_env ** ** Display CGI-variables and other aspects of the run-time | > | 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 | ** Return the javascript */ void page_main_js(void){ Blob mainjs; cgi_set_content_type("application/javascript"); blob_init(&mainjs, builtin_text("main.js"), -1); cgi_set_content(&mainjs); g.isConst = 1; } /* ** WEBPAGE: test_env ** ** Display CGI-variables and other aspects of the run-time |
︙ | ︙ |