• Home
  • WP tuts
  • Hosting talk
    • Free hosting
    • Cheap Hosting
    • comparison cloud , vps, shared, wordpress
    • managed wordpress hosting
    • managed cloud hosting
  • Speed up wordpress
  • Pc world
  • Services
  • About Me

RAaz Kumar .com

wordpress tutorials seo hosting etc

Reduce the impact of third-party code ,optimize JS delivery, Minify, remove unused js, pre connect, inline, lazy load etc

Add below code your WordPress theme functions.php manually not recommended

or try to user wp plugins scripts to footer (this not moves script in the mobile version of mobile.

speed booster pack move all the script but not allows to minify HTML.


Moving javascript footer why it’s important

 

Other than WordPress  or small HTML pages you can place javascript after closing the </head> and before  closing the </body> tag.

HTML loads first, so the user can see what they want. js Loads meanwhile.

Loading javascript asynchronously and defer parsing js

How to javascript Asynchronously?

just look at the Adsense ad code  <script>

<script async src=”path to js file”></script>

How to defer load / parse Javascript?

Defer loading means wait until the  HTML content then load javascript. quick possible solutions use async or defer. but it not works we need use on load function.

this is deep process only for developers. 90% of people ignore this.

 

Another thing is Optimize CSS Delivery

Minify CSS: Reducing the size by removing comments & Space This process applicable for JS and HTML too.

CSS Placement: why we have to place CSS in the header. Without CSS Plain HTML Loads it looks like ugly.

Inline CSS: if there is small CSS then try to inline the CSS instead loading from external file.

 

The best Plugin to cache all resources and serve quickly w3 total cache.

Check out my other thoughts Increase page speed score in google insights 95+, How to  improve page speed

 

inline critical js small

it’s better online s just like critical css,

mostly responsive menu in mobile.

remove unused js

unload js files with asset cleanup.

 

Reduce the impact of third-party code

 

Third-party code blocked the main thread for 710 ms

 

<link rel=”dns-prefetch” href=”http://example.com”>

<link rel=”preconnect” href=”https://cdn.example.com”>

async and defer js

 

default behavior for script downloading and parsing is synchronous,

JavaScript marked async will always execute before JavaScript marked defer

 

 

Optimize js delivery

Mediavine switched to lazy-loading ads and saw a 200% improvement in page load speed.

by google

service worker

a service worker to determine how often a piece of content should be fetched from the network,

 

Optimize HTML to Boost Web Performance

Clean up HTML
Don’t use inline styles / scripts.
minify html
compress
cache at browser no need
optimize page  delivery

 

/** * Load Enqueued Scripts in the Footer * * 
Automatically move JavaScript code to page footer, speeding up page loading time. */ 
function footer_enqueue_scripts() 
{ remove_action('wp_head', 'wp_print_scripts'); 
remove_action('wp_head', 'wp_print_head_scripts', 9); 
remove_action('wp_head', 'wp_enqueue_scripts', 1); 
add_action('wp_footer', 'wp_print_scripts', 5); 
add_action('wp_footer', 'wp_enqueue_scripts', 5); 
add_action('wp_footer', 'wp_print_head_scripts', 5); } 
add_action('after_setup_theme', 'footer_enqueue_scripts');

Related topics:

  1. Optimize css delivery inline critical css, remove unused css, render blocking css
  2. Rules to get 100/100 in Google pagespeed insights score
  3. HTML & CSS Tutorials
  4. How to add adsense amp ads to wordpress
  5. facebook page like button on website Popup & sidebar

Ask a Question: Cancel reply

Your email address will not be published. Required fields are marked *

1 × 4 =

wordpress tutorials for beginners advanced complete guide to run WordPress

  • Optimize css delivery inline critical css, remove unused css, render blocking css
  • Top 3+ Wordpress Security Plugins 2020 (Brute force, Login lockdown, Malware scanner etc)
  • website cache best caching plugins wordpress w3tc cloudflare
  • How to add adsense amp ads to wordpress
  • wordpress password reset in 3 ways mail, phpmyadmin, mysql command
  • how i recovered hacked website site 5 times ft wordpress?
  • enable browser caching in wordpress apache nginx caching headers explained
  • W3TC w3 total cache plugin setup guide review comparison with wp rocket and wp super cache
  • Wordpress database optimization (don't neglect) plugins & phpmyadmin manually
  • install wordpress via command line apache nginx ubuntu debian
  • Converting WordPress into static website speed after 1 second dynamic 3 seconds
  • Wordpress errors and fix
  • Rules to get 100/100 in Google pagespeed insights score
  • Install xamp & wordpress on localhost windows
  • Change / Add / Disable favicon in wordpress Ft Genesis Theme or any theme
  • recommended php memory limit for wordpress (which one) 40MB , 64 MB 128 MB or 512 MB maybe 1024MB
  • wp cron job check working or not disable enable change schedule
  • Speed up wordpress Score on Google pagespeed 2020
  • change wordpress site url
  • Reduce the impact of third-party code ,optimize JS delivery, Minify, remove unused js, pre connect, inline, lazy load etc
  • combine rss feeds wordpress
  • how to increase wordpress memory & file upload size
  • Wordpress duplicate thin content Issues {FIXED}
  • How to use wordpress tags and categories
  • wordpress plugins that slow down your site and its alternatives
  • Auto post to Facebook, twitter, Google Plus Wordpress Posts 2019
  • all in one seo pack vs yoast seo pressor
  • TOP 5 Best wordpress comment plugins 2020 (disable pingback, replytocom, customize form)
  • How to bulk delete in wordpress posts, pages, Media Images, tags and categories
  • Social share buttons for website Wordpress Blogger
  • Wordpress Adsense Plugins & Manually
  • TOP 10 Wordpress Themes Premium/ Free & providers
  • best wordpress plugins social, seo, Backup, speed up your blog

 

PUBG Mobile Tips & Tricks

free fire how to play (a-z guide) guns, tips &#038; tricks etc

Windows 10 tips & tricks

Pagespeed optimization

Pc building tips & tricks

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

Android studio tutorials

Gaming/ streaming tips

Airtel dth channel list

 

wordpress

 

Top 5  WP Google Analytics Plugins

WP Backup Plugins

Wp Comment Plugins

Top wordpress Security Plugins

WP Seo Plugins

WP Caching Plugins

Best Adsense Plugins for WordPress

Wp social Sharing Plugins

autoshare social media plugins

WP speed Optimization Plugins

Speedup WordPress google Score

More Wp tuts

Server Admin Cloud

 

Installing Nginx LEMP On ubuntu

Installing apache Lamp ubuntu

nginx fastcgi cache enable

php – fpm install  & Configuration

Opcache install & Configure

php -fpm pool manager explained

Mysql Install & Configuration

Redis Object cache install & configure

 

Nginx as Reverse Proxy and Load balancer

Load Balance / auto scaling in google cloud

Linux Commands PDF

Mysql Commands Pdf

Letsencrypt tutorial

mysqldump export & import 

Pagespeed Module install & configure

nginx.conf best file

mysql.conf best file

upgrade ubuntu

© 2021 - All Rights Reserved Disclaimer & Privacy Policy