minified file question

Enthusiast ,
Jan 16, 2019 Jan 16, 2019

Copy link to clipboard

Copied

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.

Views

334

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 16, 2019 Jan 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.

Per

...

Likes

Translate

Translate
Adobe Community Professional ,
Jan 16, 2019 Jan 16, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 16, 2019 Jan 16, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jan 16, 2019 Jan 16, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jan 16, 2019 Jan 16, 2019

Copy link to clipboard

Copied

LATEST

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, Adobe Product User & Community Professional
Alt-Web Design & Publishing ~ Web : Print : Graphics : Media

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Component error Component didn't load. Please try again later.