Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 1, 201410 yr Will ips4 include a assetic system? Will we be able to add own contentn to ips4 js files? Since ips4 will hande the copying of the files, it would be great if we would be able to do much more with them;) e.g. what about allowing an addon/extension/hook/plugin (sorry, i'm still not familiar with your therms) to add own content at the end of the file (or even to run search and replace operations). This way we could reduce latency, because we wouldn't need to load the global files extra, instead it would be only 1 file.
June 2, 201410 yr Author That's not exactly what i mean. I'm suggesting something like the theme hooks ( http://community.invisionpower.com/blogvideos/ge78fg278vfg-themehooks.swf ) but simpler=> only a feature to add content of template xyz.js to the end of the file xyz.js. This way, i can add my own js functions, which i need global to the global js file(or my additional editor features to the editor.js file), without the need to fire additonal http/https requests. > is a BIG timesafer while the development, because i don't need to take care if my files are loaded, but it also introduces probably dozen new requests per pageload. (And now i'll shut up and just wait for ips4 and then ask my questions and suggestions:d My suggestions are probably already implemented or aren't possible in ips4:D )
June 3, 201410 yr Oh, I see, yes, JavaScript code (including third party code) is automatically compiled and minified into a few files. We don't actually ship .js files (other than for some specific libraries), but, much like how HTML and CSS is handled, each application (and plugin) has a "javascript.xml" file - when installing, the code creates several files (one for global stuff, one for stuff needed only in the ACP, etc.)
Archived
This topic is now archived and is closed to further replies.