umen Posted January 1, 2021 Share Posted January 1, 2021 hello all Abit wired question but is there any tool that given HTML with included javascript can Flaten all the page to 1 big HTML and javascript file ? Thanks Quote Link to comment Share on other sites More sharing options...
grelf Posted January 24, 2021 Share Posted January 24, 2021 It would not be difficult to write a program that scanned an HTML file looking for <link> and <script> elements, finding the relevant files from the attributes and replacing the elements with the file contents. But why would you want to? There are several advantages in having things in separate files. For example, if you change something in one file the user does not have to downlaod everything again, just the one file. Do you want to combine the files for sending to someone? That is easily done by making a ZIP file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.