1

Topic: Defer Javascript and optimizing wordpress with BWP Minify

Hi

first of all , thanks for your good work on BWP Minify, and I apologize by advance as I m not a pure developper, so my question could be easy to reply, but at least, I swear I look at the forum first

I m working since a few days on reviewing different tools to minify ( cloudflare, W3 Total Cache, BWP Minify )
and I m controlling the results with http://gtmetrix.com , ( if you know some alternative, please let me know )

If you see at the Google Page Speed and Yahoo Speed tools test, I still see the top recommandations is about the Javascript position, or things generated by WP Minify

http://albums.photoonweb.com/celebrities/2012-04-15_10h07_36.png

Except I don't know how I could control the Javascript defering ( see lines after
Defer parsing of JavaScript

As you can see too, sometimes WPMinify doesn't detect some script, or try to minify things only 1 file, ( and I think it takes more time than doing nothing )

also, it complains about the short url which this message :

Remove query strings from static resources but I think you are working on it .

So I tried to define the position of the minified javascript but I think I don't get the syntax to be used, and I need help on it

see the screenshot too

http://albums.photoonweb.com/celebrities/2012-04-15_10h14_02.png

I hope you could help me and so I could help a lot of other developers ( because I m promoting also a plugin for wordpress to build mailing list, so I see a lot of web site not optimized and it makes me sick ) , so I was looking for simple plugin to set up to speed the loading time of wordpress.

thanks a lot by advance, if you need an access, or anything for details, please let me know.

2

Re: Defer Javascript and optimizing wordpress with BWP Minify

Hi there Fabrice, thanks for trying out BWP Minify!

As you can see too, sometimes WPMinify doesn't detect some script, or try to minify things only 1 file, ( and I think it takes more time than doing nothing )

This is due to the fact that not all scripts or css are enqueued, i.e. they are echoed directly, and since BWP Minify relies on enqueueing, it can't detect those scripts/css. The Minifying Scripts Options is there to help you control the position/minification for scripts/css that can be detected, so don't use that. Check out question #2 here: http://betterwp.net/wordpress-plugins/bwp-minify/faq/ for a possible workaround.

Remove query strings from static resources but I think you are working on it .

So I tried to define the position of the minified javascript but I think I don't get the syntax to be used, and I need help on it

Yes, with 1.3.0, a lot of new things will be possible smile

Stay tuned!

http://betterwp.net/ - A Better WordPress world for everyone!
Useful links: Forum Rules | WordPress Plugins | WordPress Tips | In-depth WordPress Tutorials

3

Re: Defer Javascript and optimizing wordpress with BWP Minify

Khang Minh wrote:

Hi there Fabrice, thanks for trying out BWP Minify!

As you can see too, sometimes WPMinify doesn't detect some script, or try to minify things only 1 file, ( and I think it takes more time than doing nothing )

This is due to the fact that not all scripts or css are enqueued, i.e. they are echoed directly, and since BWP Minify relies on enqueueing, it can't detect those scripts/css. The Minifying Scripts Options is there to help you control the position/minification for scripts/css that can be detected, so don't use that. Check out question #2 here: http://betterwp.net/wordpress-plugins/bwp-minify/faq/ for a possible workaround.

Remove query strings from static resources but I think you are working on it .

So I tried to define the position of the minified javascript but I think I don't get the syntax to be used, and I need help on it

Yes, with 1.3.0, a lot of new things will be possible smile

Stay tuned!

Sorry I don't understand, you mean what I have filled is useless ?
can you give a sample of way to enqueue the script ?
or could I hire you to review my case, it's very important for me to optimize the web site

PS : I hope you received my donation too.

4

Re: Defer Javascript and optimizing wordpress with BWP Minify

Fabrice wrote:

Sorry I don't understand, you mean what I have filled is useless ?
can you give a sample of way to enqueue the script ?
or could I hire you to review my case, it's very important for me to optimize the web site

Yes what you have filled will not help because, as I stated before, the plugins and themes you're using are echoing scripts/css directly instead of enqueueing them. If you want to make those plugins/themes enqueue their scripts/css, you will have to modify their codes, which is something I would not recommend. I can help you review the website if you want, please contact me using the contact form, thanks smile

http://betterwp.net/ - A Better WordPress world for everyone!
Useful links: Forum Rules | WordPress Plugins | WordPress Tips | In-depth WordPress Tutorials

5

Re: Defer Javascript and optimizing wordpress with BWP Minify

thanks we are working still on evaluation and I just found the 3rd option box in WP Better minify was causing an issue in my web site.

Now I m focusing more on the performance and if the cache is working properly, as the time to get the minified version is very long compared to the size. if it is supposed in the cache, it should be very short no ?

can you look at the waterfall timing of this web site :

http://www.obviousidea.com  but I can also set up a special test wordpress web site for you.

for the coding part, I don't mind to recode and add some lines, but when I read to your faq, it is not so easy as you don't put a real sample of the path for example