Replies: 5 comments 3 replies
-
It's an interesting idea, I've been using a direct CDN like https://cdnjs.com for a few years, there's only one detail that has a CDN that sometimes gets unstable, since these larger ones usually have more than one CDN to serve. Perhaps an idea in the future would be to analyze which public CDN is better, exchange the codes directly for them or in the Panel even the customer may be able to choose between which public CDN he wants. I've been using it for years on the Panel and on the company's main website, I prefer as soon as I compile JS or have to take care of the files, but I also understand the use of CSS and JS in place, as it creates 0 external dependency and many Stores use their own CDN . Another way is to give the client the option to use it by CDN or local, maybe even at the time of installation or after the configuration it can change. |
Beta Was this translation helpful? Give feedback.
-
Does not matter where they are loaded from. I am more interested, how to remove unneeded default external resources. For example I am building a theme where they are not used, fonts, javascripts and styles. OC4 have no function to check and remove links, styles, javascripts using events. OC4 has only Add and Get functions. But not Delete. And there is no way to remove unused resources with events. Only parse twig file, or it's data. |
Beta Was this translation helpful? Give feedback.
-
It might be used temporarily only, because we can see entire FA inside install/ folder. OC itself suggests to remove the Install folder once the installation is over. |
Beta Was this translation helpful? Give feedback.
-
Voted "down". Why? 2 reasons:
Better approach would be, to load every library/font/etc. from locale instead fetching external sources. |
Beta Was this translation helpful? Give feedback.
-
Agreeable. But at least, there could have been single instance of such content. For example: |
Beta Was this translation helpful? Give feedback.
-
https://github.com/opencart/opencart/tree/master/upload/install/view/stylesheet/fontawesome
May be it is a time to upgrade FontAwesome into CDN.
Looks like only install/ has it.
Beta Was this translation helpful? Give feedback.
All reactions