View previous topic :: View next topic |
Author |
Message |
intuz Smarty n00b
Joined: 22 May 2015 Posts: 3
|
Posted: Mon Dec 21, 2015 3:54 pm Post subject: Plugin 'loadJS' used to merge JS files into one single file |
|
|
Hello everyone,
I could not quickly find any plugin which allows me a simple concatenate of multi JS files into a single file.
Thats why I built up this little helper:
https://github.com/ole1986/smarty-plugin-loadJS
LAST UPDATE: 2015-12-22
Last edited by intuz on Tue Dec 22, 2015 1:50 pm; edited 2 times in total |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Dec 21, 2015 4:53 pm Post subject: |
|
|
How is this a Smarty question? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Dec 21, 2015 8:39 pm Post subject: |
|
|
AnrDaemon wrote: | How is this a Smarty question? |
It is not, he is promoting a plugin he created, and aptly in the "plugins" section of the forum as he should be. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Mon Dec 21, 2015 11:42 pm Post subject: |
|
|
Well, I don't see, how it fits Smarty at all.
As plugin, tool, or whatever. |
|
Back to top |
|
intuz Smarty n00b
Joined: 22 May 2015 Posts: 3
|
Posted: Tue Dec 22, 2015 1:49 pm Post subject: |
|
|
AnrDaemon wrote: | Well, I don't see, how it fits Smarty at all.
As plugin, tool, or whatever. |
Can you please not be a child and explain why it does not fit? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Dec 22, 2015 9:15 pm Post subject: |
|
|
Because PHP is a server language, and JS is a client language. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Dec 23, 2015 4:39 am Post subject: |
|
|
AnrDaemon wrote: | Because PHP is a server language, and JS is a client language. |
The OP is referring to a Smarty plugin. The plugin combines JS files to a single file to minimize HTTP connections. I don't see the problem here. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
|