-
AuthorPosts
-
September 25, 2019 at 10:58 am #1141739
Hello to all,
The GTmetrix report a high priority level with a E grade with inline small javascript.
It advises me to inlining small external JavaScript files, this can save the overhead of fetching these small files. “A good alternative to inline JavaScript is to combine the external JavaScript files”.
How can I do that ?
See exactly the report in private,Regards
IceanSeptember 26, 2019 at 11:35 am #1142225Does everyone could help for this request ?
Thanks in advance,
Iceman- This reply was modified 5 years, 2 months ago by ICEMAN.
September 27, 2019 at 2:18 am #1142532Hi,
Thank you for the inquiry.
The theme has its own file compression option, which is located in the Enfold > Performance panel. You can use that to merge the scripts and stylesheets. If the site has a lot of plugins or third party scripts, use a third party minify tool like Autoptimize because the native compression might not include those scripts in the merged file.
Best regards,
IsmaelSeptember 27, 2019 at 10:04 am #1142634Thanks Ismael, I already have W3 TOTAL CACHE, do yu think it will do the job and compatible with the theme ?
September 27, 2019 at 11:09 am #1142676Hi ICEMAN,
Yes, this plugin should do the job.
Best regards,
VictoriaSeptember 27, 2019 at 11:43 am #1142699Ok, thank you Victoria, you can close this topic , have a nice day !
Regards,
IcemanSeptember 27, 2019 at 6:46 pm #1142882Victoria, I use W3 TOTAL CACHE and as you see in the screen capture, GTmetrix test, some of resources are still bad with js…
September 29, 2019 at 8:20 pm #1143141Hi ICEMAN,
Please share the GTmetrix test result.
Best regards,
VictoriaSeptember 30, 2019 at 11:03 am #1143285Hi Victoria, see the result for javascript in private :)
Regards,
IcemanSeptember 30, 2019 at 11:54 am #1143328Hi ICEMAN,
You can configure the plugin to minify JavaScript
https://code.tutsplus.com/articles/configuring-w3-total-cache-advanced-minification-settings–wp-31043and the them does JavaScript merging too. Did you have it enabled?
Best regards,
VictoriaSeptember 30, 2019 at 12:59 pm #1143363What do you mean by JavaScript merging ?
September 30, 2019 at 3:53 pm #1143394Victoria, could you explain how to turn on Enfold Javascript Merging ?
October 1, 2019 at 3:55 pm #1143797Hi ICEMAN,
You could see this option in Enfold > Performance > Javascript file merging and compression.
Best regards,
NikkoOctober 1, 2019 at 4:23 pm #1143812Ok Nikko, great !
Do I need to deactivate javascript and css minification (or other options that can disturbing) in W3 Total Cache if I activate CSS and javascript file merging in Enfold theme ?See the results in private
- This reply was modified 5 years, 2 months ago by ICEMAN.
October 3, 2019 at 5:41 am #1144340Hi ICEMAN,
Enfold’s js/css merging & minification only affects js/css files in the Enfold theme, if you have other js/css files that’s not from enfold I think it’s better to use the one from w3total cache but you may need to review your site since minification sometimes causes undesirable results.
This article from Kriesi might help you in getting better scores: https://kriesi.at/archives/scoring-100-100-in-google-pagespeed-insights-gtmetrix-pagespeed-and-yslowBest regards,
NikkoOctober 3, 2019 at 10:36 am #1144426Ok Nikko, it’s nice of you to help me.
Have a good day !
Cheers !
IcemanOctober 4, 2019 at 8:11 pm #1145072Hi ICEMAN,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaOctober 4, 2019 at 9:14 pm #1145108You can close the topic,
Cheers !
IcemanOctober 4, 2019 at 10:14 pm #1145146Hi,
Best regards,
Victoria -
AuthorPosts
- The topic ‘Inline Small Javascript’ is closed to new replies.