Lukeroge Posted August 10, 2015 Share Posted August 10, 2015 Right now IPS includes a rather large amount of JS and CSS on every page, and a decent amount of it could be combined into a single file and minified, as a best practice. It would be nice to have this happen automatically, or for IPS to include an ACP option to enable it. Link to comment Share on other sites More sharing options...
GrooveOnBeat Posted August 13, 2015 Share Posted August 13, 2015 I was thinking something similar. The CSS can be consolidated and organized better. I find myself looking through source more often to find codes that should be easily found in the files. There are category of codes that are split into other files when they can be managed more efficiently if they're grouped in the same file. Link to comment Share on other sites More sharing options...
sobrenome Posted August 23, 2015 Share Posted August 23, 2015 Is there any reason for IPS 4 not combine all css files and all javascript files into one single file?Anyone using mod pagespeed for it? Link to comment Share on other sites More sharing options...
sobrenome Posted August 29, 2015 Share Posted August 29, 2015 Anyone from IPS could give us a feedback? Link to comment Share on other sites More sharing options...
LDDG Posted April 23, 2016 Share Posted April 23, 2016 Can anyone from the IPS staff please comment on this? Is there a way to combine all into 1 minified file? Link to comment Share on other sites More sharing options...
White Miku Posted April 23, 2016 Share Posted April 23, 2016 The same question. When loading page, my browser sending a number of HTTP requests for js and css, which takes some time. Why not compile root js and css to one file and save it to cache for reducing number of requests? Root js and css loads on every page loading. Answer from IPS Staff will be very appreciated. Link to comment Share on other sites More sharing options...
Colonel_mortis Posted April 23, 2016 Share Posted April 23, 2016 There are some that they could merge, but a lot of merging has already happened. Most of the files that you get at the moment are for different parts of the site, so there's no point bundling the gallery JS with the forum JS, because you wouldn't use them at the same time. There's also not point bundling the forum JS with core JS when viewing the forum, and the gallery JS with core when viewing the gallery, because that means that all the core JS will have to be redownloaded when you change from the forum to the gallery. In dev mode, when JS isn't merged, there are about 250 JS files requested. In production, it's about 20 files. It's much better than it could be. Link to comment Share on other sites More sharing options...
LDDG Posted April 23, 2016 Share Posted April 23, 2016 7 hours ago, Colonel_mortis said: There are some that they could merge, but a lot of merging has already happened. Most of the files that you get at the moment are for different parts of the site, so there's no point bundling the gallery JS with the forum JS, because you wouldn't use them at the same time. There's also not point bundling the forum JS with core JS when viewing the forum, and the gallery JS with core when viewing the gallery, because that means that all the core JS will have to be redownloaded when you change from the forum to the gallery. In dev mode, when JS isn't merged, there are about 250 JS files requested. In production, it's about 20 files. It's much better than it could be. This makes total sense. I can live with this and I am glad someone finally shed some light on this. Thanks, Colonel. Link to comment Share on other sites More sharing options...
sudo Posted April 27, 2016 Share Posted April 27, 2016 The other thing to remember with HTTP 2 (must use ssl fyi) the browser doesnt use multiple connections to each asset so it will load pretty fast naturally. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.