kasparsd / minit

A WordPress plugin to combine CSS and Javascript files.
GNU General Public License v2.0
286 stars 46 forks source link

Combining js not working #36

Closed santo007 closed 9 years ago

santo007 commented 9 years ago

I have tested the plugin it doesnot combining js and css files instead loading them through asnyc attribute.How to fix this.I also cleared cache while viewing the source

kasparsd commented 9 years ago

Minit doesn't add the async attribute to JS links since WordPress core doesn't provide a simple way of doing it. The only option is to use output buffering and search/replace which is unreliable.

santo007 commented 9 years ago

but combining is not working is there any demo or proof

kasparsd commented 9 years ago

It is working. For example, have a look at my blog.

Do you have an example where Minit doesn't work?

santo007 commented 9 years ago

Here is my My Blog.You can see that .js files are not combined by using source

kasparsd commented 9 years ago

Looks like you are already running some kind of tool or service that optimizes the HTML and asset delivery (judging by the removed empty spaces in HTML). I also noticed that the HTML is served by Cloudflare which might be doing some of the optimization.

Unfortunately I am unable to provide support for each particular implementation.

santo007 commented 9 years ago

i am using w3tc plugin.Is there any problem by using it

santo007 commented 9 years ago

also i have switched off all boosting performances done by cloudflare for my blog.

santo007 commented 9 years ago

Anyway thanks for the support.Your plugin works good but the mistake is due to leverage browsing caching.I have flushed the cache it isn't showing the combined js but while testing my site using gtmetrix shows a .js file instead of bunch of files.Thanks for the support