Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8281523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:03:48+00:00 2026-06-08T10:03:48+00:00

I have a .html document with CSS and Javascript inside of document (no external

  • 0

I have a .html document with CSS and Javascript inside of document (no external files). Is there some online tool that would minify document and Javascript to some very small footprint? I saw many scripts kind of unreadable, where all variables and function names are replaced with one-letter names, etc. Please advice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:03:49+00:00Added an answer on June 8, 2026 at 10:03 am

    Edit 2 (Feb 22, 2017): Now the best tool to minify your assets (and a whole lot more, by adding loaders and plugins) is definitely Webpack.

    Example of config to move all your .css in one file and minify it:

    {
      test: /\.css$/,
      use: [
        {
          loader: 'css-loader',
          options: {
            minimize: true
          }
        }
      ]
    }
    

    Edit 1 (Sept 16, 2014): Even better, now you have task runners like Gulp or Grunt.

    Task runners are small applications that are used to automate many of
    the time consuming, boring (but very important) tasks that you have to
    do while developing a project. These include tasks such as running
    tests, concatenating files, minification, and CSS preprocessing. By
    simply creating a task file, you can instruct the task runner to
    automatically take care of just about any development task you can
    think of as you make changes to your files. It’s a very simple idea
    that will save you a lot of time and allow you to stay focused on
    development.

    Must read: Getting started with Gulp.js

    Example of task with JavaScript concatenation and minification (and JSHint):

    gulp.task('scripts', function() {
      return gulp.src('src/scripts/**/*.js')
        .pipe(jshint('.jshintrc'))
        .pipe(jshint.reporter('default'))
        .pipe(concat('main.js'))
        .pipe(gulp.dest('dist/assets/js'))
        .pipe(rename({suffix: '.min'}))
        .pipe(uglify())
        .pipe(gulp.dest('dist/assets/js'))
        .pipe(notify({ message: 'Scripts task complete' }));
    });
    

    Original answer (Jul 19, 2012): I advise the HTML5 Boilerplate Build Script which can minify your JS and CSS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML document where I would like to semantically group text to
Ok so i have an html document that i reference in my visual studio
I have a HTML/XML document similar to the following. There can be one or
I have a HTML page that is generated by JavaScript (JQuery). It makes use
I have and index.html with jQuery loading and an external javascript(functions.js) file loading. But
I am new to JavaScript and jQuery, but have used HTML and CSS before.
i wonder if i could embed js and css files above the html document
i have a problem with loading .html pages (with JavaScript inside) into a div
I have a code which I used to load external files into a html.
I have this HTML file with some CSS styles, now I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.