paolobenve / myphotoshare

MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
15 stars 0 forks source link

Use minified files? #9

Closed joachimtingvold closed 7 years ago

joachimtingvold commented 7 years ago

Hi,

Why are we not using the minified .js/.css files in index.html?

And why are you using them individually, rather than the one blob "scripts.min.js"/"styles.min.css"?

You'd want as few HTTP-requests as possible, so by using them individually, it's theoretical slower. In addition (as a side effect); by not using the minified files, access is blocked by the .htaccess-files (if you're using apache), since they only allow the ".min.js" and ".min.css" files.

paolobenve commented 7 years ago

I'm using non-minified css and js files in order to speed up the test fase, I agree that the minified version is better

joachimtingvold commented 7 years ago

Ah, I see. That makes sense.