MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - Leverage browser caching for external JavaScripts

WebPagetest Forums

Full Version: Leverage browser caching for external JavaScripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi friends

I optimized my site (HafezNa.ir)...for all items
but I get a "Leverage browser caching" warning for an external JS
(for example for "google analysis" or statcounter)

how can solved it??
You can't. Just make sure you are loading the scripts asynchronously and that's the best you are going to be able to do.

Looking at your site, one big win you can get will be fixing the blocking issue with IE conditional comments. You have:

Code:
<!--[if IE 7.0]><style>.clearfix { display: inline-block; } /* IE7xhtml*/</style><![endif]-->

directly after your external css and that is causing all versions of IE to not load the rest of the content on the page until the css finishes loading. If you add an empty conditional comment to the top of the page it should "unstick" IE and load more in parallel.

More info here: http://www.phpied.com/conditional-commen...downloads/

Thanks,

-Pat
I don't know why I banned from The forums...

any way...
thank you very much Pmeenan
It was a great help for me,I didn't know that note;

The results was great:

before fix:
http://www.hafezna.ir/img/before.jpg

after fix:
http://www.hafezna.ir/img/after.jpg

can you check my source agian please...
I welcome your valuable suggestions and comments Smile
Reference URL's