SSL Labs ScoreSecurityHeaders.io ScoreHSTS Preloaded

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

System - Bundler

More
1 year 6 days ago #2604 by michael
System - Bundler was created by michael
...

Take control over the number of javascript and css files you're sending to your visitors.


Testing my own sites, I found that one piece I was always shaking my head at was the number of CSS and Javascript files that were being sent to visitors. With just a few plugins, it was easy to have 40 or more JS and CSS files being sent. This plugin can reduce that number significantly!. By bundling files, you can reduce the number of HTTP requests by your visitors which reduces your server load and their load times.

Using the configurations, you can specify the files to bundle, and where to bundle them. By default, they're put into a bundle file that gets updated on extension updates. It can also bundle into separate (named) files for use elsewhere (like my System - HTTP/2 Push plugin). You can see it in use on this site - right now!

Please Log in or Create an account to join the conversation.

More
1 month 3 days ago #4080 by marc
Replied by marc on topic System - Bundler
Hi,
I'm testing your Bundler and I have an issue.
For now i'm testing with css only and the blundler outputs a bundled css file which aggregate all the css files I want. So this part is fine but the problem is that some (or all) original files are not removed from the output.
So, for example, the originals files are mycss1.css and mycss2.css and in the output there is mycss1.css, mycss2.css AND the newly created bundledcss.css.
I've tested on 2 websites, locally and online, with the same results.
any idea?
Thanks

Please Log in or Create an account to join the conversation.

More
3 weeks 5 days ago #4096 by marc
Replied by marc on topic System - Bundler
Hi,
a little bump…

Please Log in or Create an account to join the conversation.

More
3 weeks 2 days ago #4104 by michael
Replied by michael on topic System - Bundler
Are the CSS files added by a plugin? If so, that plugin may be running after bundler, which means the CSS files are not present in the output for bundler to remove them.

OR

The CSS files are hardcoded in the template, which means they aren't added programmatically - and bundler can't see those.

hardcoded will look like this in the template:
<link rel="stylesheet" type="text/css" href="/path/to/css/file.css" />

added programmatically will look something like this:
JFactory::getDocument()->addStyleSheet('/path/to/css/file.css');

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Powered by Kunena Forum