Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Remove render-blocking JavaScript View modes: 
User avatar
Member
Member
gianglt3-fsoft.com - 2/13/2014 9:48:40 PM
   
Remove render-blocking JavaScript
Hi all!
Now,i 'am developing a website by Kentico and i have issue when using http://developers.google.com to improve my site' performance.
Google suggest:


Remove render-blocking JavaScript:

http://xxx.com/…Mzzv5W_XM7UjWyAtpA1&t=635089779480000000
http://xxx.com/…e%2fCMSScripts%2fjquery%2fjquery-core.js
http://xxx.com/…%7e%2fCMSScripts%2fjquery%2fjquery-ui.js
http://xxx.com/…2fCMSScripts%2fjquery%2fjquery-dialog.js
http://xxx.com/…CMSScripts%2fDragAndDrop%2fdragiframe.js
http://xxx.com/…LAz2soozaED71XqwnL-cOr1h6Jg70&t=3a1336b1
http://xxx.com/…OVx8EFV9B6dKbWRlZG7B8G4kQ9AA2&t=3a1336b1


This files be render by Kentico (ex: ImageControl.ascx ...) although i not using ImageControl
I have a question:
How to remove this files when page loaded
What have impact when remove them

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 2/14/2014 1:38:40 AM
   
RE:Remove render-blocking JavaScript
Hi,

Thank you for your message.

The impact would be quite devastating if you use frames or any other jQuery functionality. If the Kentico generates its itself you couldnt remove them anyways without changing a lot of code (in source code also).

Unfortunately there is no way to fix this as if the scripts are generated by Kentico you should never attempt to remove them.

Kind regards,
Richard Sustek

User avatar
Member
Member
gianglt3-fsoft.com - 2/17/2014 3:29:25 AM
   
RE:Remove render-blocking JavaScript
Thank you very much for your information

User avatar
Member
Member
gianglt3-fsoft.com - 3/18/2014 5:08:19 AM
   
RE:Remove render-blocking JavaScript
Kentico_RichardS wrote: Hi,

Thank you for your message.

The impact would be quite devastating if you use frames or any other jQuery functionality. If the Kentico generates its itself you couldnt remove them anyways without changing a lot of code (in source code also).

Unfortunately there is no way to fix this as if the scripts are generated by Kentico you should never attempt to remove them.

Kind regards,
Richard Sustek

Hi RichardS! I have a question: If I can't remove files script are generated by Kentico,can I compress them? ex : jquery-core.js, jquery-dialog or jquery-ui...

Thank and Best Regards!
GiangLT3

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 3/18/2014 6:29:31 AM
   
RE:Remove render-blocking JavaScript
Hi,

Thank you for your message.

Actually yeah, we have thought of this aspect and you can see that all our scripts are getting through GetResource.aspx page. If it goes through this page you can increase performance by going to Site manager -> Settings -> System -> Performance the Resources section. You can compress these scripts and minificate them.

Kind regards,
Richard Sustek