Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Production Build and Separate JavaScript from HTML #76

Open
azdanov opened this issue Mar 8, 2025 · 2 comments
Open

Optimize Production Build and Separate JavaScript from HTML #76

azdanov opened this issue Mar 8, 2025 · 2 comments

Comments

@azdanov
Copy link
Contributor

azdanov commented Mar 8, 2025

To improve the maintainability and performance of the project, it would be good to:

  • Implement an optimized production build that runs the TailwindCSS CLI to remove all unused CSS to have faster load times instead of relying on the CDN version that should only used for development.
  • Separate the JavaScript code from the HTML files to make the code base cleaner and easier to manage in the future

What can be done:

  • Optimize Production Build:

    • Configure the build process to use the TailwindCSS CLI tool.
    • Ensure that all unused CSS is removed during the production build.
    • Verify that the final CSS bundle is optimized for production without any issues.
  • Separate JavaScript from HTML:

    • Identify all inline JavaScript code present in the HTML file.
    • Extract the JavaScript code into separate .js files.
    • Link the extracted JavaScript files appropriately in the HTML file.
    • Update the project documentation to reflect the new structure.
@vprelovac
Copy link
Contributor

vprelovac commented Mar 8, 2025

@azdanov I think this sounds ok will let @GiorgioBrux confirm

(assuming you are ready to create a PR for this)

@GiorgioBrux
Copy link
Contributor

Hey, if you'd like to create a PR for this go ahead - and thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants