Do I understand correctly that the precompilation of assetof (assets) Rails app needs to "translate" code scss and coffee code in the css and js code sootvetstvenno?
That is, if I refuse to use coffee script and scss markup, no precompile will not occur?
And again, if there are scripts in coffee format and in js format, Rails will only prokompasirovali coffee?
P. S. as far As precompiling increases the page load time? How its beneficial to use? Is it worth to sacrifice page load times for the sake of convenience?
In development environment assets is recompiled when you change and update pages on the fly
In production environment, all your Coffee and SCSS will be minimized, compiled and combined into two static JS and CSS file, neatly stacked in the folder public/asssets/
Noemy.Nol answered on July 12th 19 at 16:39
To speed up page load time. Profitable.
abbie.Ullrich56 answered on July 12th 19 at 16:41
Also during compilation the file name is added to the digest hash, which guarantees that the user will be updated cached assets. Therefore, it is necessary not to forget to use image-url and other helpers in Saas files