Skip to main content
Inspiring
January 16, 2019
Answered

minified file question

  • January 16, 2019
  • 4 replies
  • 569 views

Hi,

Might be a silly question. If I upload the non-minified file along with the .min file and the .min file is the one called into the index file... there will be no negative effect on site load time? Is that right? Just to have the non-min file stored within the web server to make it easier to make edits? (so they are not only stored side-by-side locally, but also remotely on the web server)

I just want to verify and see if that is what people usually do? (best practice)

Thank you.

    This topic has been closed for replies.
    Correct answer osgood_

    r_tist  wrote

    Hi,

    Might be a silly question. If I upload the non-minified file along with the .min file and the .min file is the one called into the index file... there will be no negative effect on site load time? Is that right? Just to have the non-min file stored within the web server to make it easier to make edits? (so they are not only stored side-by-side locally, but also remotely on the web server)

    I just want to verify and see if that is what people usually do? (best practice)

    Thank you.

    Personally I don't minify any files these days. Unless your website is predominately being viewed by people living in the out-back in my opinion it makes little difference to performance.

    I actually do not like keeping what are effectively duplicate files, one build file and one deployment file, its just too much managment when it really doesnt matter. Yes its trendy these days but really unecessary, in most cases.

    But to answer your question. If you want to give yourself uneccessary work and management issues you could use the workflow as you describe without any effect on site load time.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    January 16, 2019

    I use minified libraries like jQuery, jQuery UI and Bootstrap.  But I don't keep non-miniifed versions because I never edit those files.   For all the rest, I use server-side GZIPPING. 

    The Difference Between Minification and Gzipping | CSS-Tricks

    Nancy O'Shea— Product User & Community Expert
    ALsp
    Legend
    January 16, 2019

    I agree with Osgood, and more...

    There is absolutely no need to minify HTML pages. And minifying JavaScript and CSS files hardly matters and might save you several milliseconds, while making asset management for you more complicated.

    osgood_Correct answer
    Legend
    January 16, 2019

    r_tist  wrote

    Hi,

    Might be a silly question. If I upload the non-minified file along with the .min file and the .min file is the one called into the index file... there will be no negative effect on site load time? Is that right? Just to have the non-min file stored within the web server to make it easier to make edits? (so they are not only stored side-by-side locally, but also remotely on the web server)

    I just want to verify and see if that is what people usually do? (best practice)

    Thank you.

    Personally I don't minify any files these days. Unless your website is predominately being viewed by people living in the out-back in my opinion it makes little difference to performance.

    I actually do not like keeping what are effectively duplicate files, one build file and one deployment file, its just too much managment when it really doesnt matter. Yes its trendy these days but really unecessary, in most cases.

    But to answer your question. If you want to give yourself uneccessary work and management issues you could use the workflow as you describe without any effect on site load time.

    Jon Fritz
    Community Expert
    Community Expert
    January 16, 2019

    Unless you also link to the non-minified file within your page, that file will never be part of a download.

    You could have folders filled with GBs of image files stored on your server, unless you link to them within your pages, they're not going to slow your site down.