designdrumm on "[Plugin: W3 Total Cache] Above and below the fold issues with W3TC"

ساخت وبلاگ

Hello,
I keep reading on your forum that people need to use manual minify in order to control where a script or css file is loaded and that those who need to use automatic are doomed to have low performance scores on google and bing and the like because you guys do not load your own minified files per these requirements. Which I understand, you don't want to interrupt the flow of scripts and such that are programmed into themes and plugins. However, even WordPress gives you the option to set where the script is loaded. true=footer and false = header.

Why are you not adopting this premise in your automatic load?
If you were, then you should be reading for the load flag on the wp_enqueue_script.

for example:
wp_enqueue_script('datetimepicker', get_template_directory_uri().'/js/jquery.datetimepicker.min.js', array('jquery'), null, true);

The true at the end says to load in the footer, if it was false, WP would load it in the header like normal. This lets you cache the script and developers to tell you where to load them. Then you just create two minify .css and .js and make them load appropriately in the head or footer per the scripts enqueue.

Seems such an easy fix to such an unnecessary problem with an otherwise great plugin.
I hope to see an update in the next couple of days for this otherwise I may have to look at what the competition has to offer. Time is of the essence for me at this moment. Who ever gets me the better score wins! I would probably go pro too! (: ))

Best regards,
Karl

https://wordpress.org/plugins/w3-total-cache/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 255 تاريخ : شنبه 2 مرداد 1395 ساعت: 7:40