From 3e2cacb826dc703b789d575c378f8dccb2dc95a6 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 29 May 2020 09:51:09 +0200 Subject: JS: Split v2rw.js into plain.js and elm.js, only include JS files when necessary The trace_log showed that the vast majority of pageviews do not need any Elm modules at all, so we can save a lot by not loading them on the page. Some pages (most notably: VN pages for not-logged-in visitors) do need JS but don't load any Elm modules. I've added a 'js' flag to HTML::framework_() to indicate that and ensure that plain.js is still loaded. --- .gitignore | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index eda3cee9..584a6483 100644 --- a/.gitignore +++ b/.gitignore @@ -12,9 +12,12 @@ /static/f/vndb.js /static/f/vndb.min.js /static/f/vndb.min.js.gz -/static/f/v2rw.js -/static/f/v2rw.min.js -/static/f/v2rw.min.js.gz +/static/f/elm.js +/static/f/elm.min.js +/static/f/elm.min.js.gz +/static/f/plain.js +/static/f/plain.min.js +/static/f/plain.min.js.gz /static/feeds/ /static/s/*/style.css /static/s/*/style.min.css -- cgit v1.2.3