Closed wambaloo closed 5 years ago
Can you create a pull request please ?
Hi !
I could do it when my internet access will be open for windows command line in my job... proxy bloqued it so I can't clone the git repository and I can't commit... I hope I could do it soon !
Would be great if this was fixed.
Hi !!!
I was looking for optimize my application on page loading, and I notice that an empty CSS file is already generated by assets-bundle plugin. This file (named like dev_0fead24561256adfebb64c5614a.css) is already empty and made page loading in Chrome and Firefox very long (because these browser send a 404 error when trying to load an empty CSS file). So I look into the source code to see how I can speed up my app by avoid this empty loading. I modify the following lines to optimize that, I let you see if it's the right way to do that or if I missed something. I think it could be a plus to integrate this case in your library to not generate an empty file and not include it in page loading.
In file AssetsBundle/AssetFile/AssetFilesCacheManager.php, line 184 to the end of the method, I replaced that:
by:
And in file AssetBundle/AssetFile/AssetFilesManager.php, line 212, I replaced:
by:
I hope it will help !