Page doesn't load - waiting for unpkg.com in Chrome bottom left corner


(App Shah) #1

I was working on one of my client’s site and noticed page goes un-responsive on load for quite a few times.

As you may have noticed, we are using Genesis Framework on Crunchify and for all of my clients, we had below code in my theme’s functions.php file.

wp_enqueue_style(
	'ionicons',
	'//unpkg.com/ionicons@4.1.2/dist/css/ionicons.min.css',
	array(),
	CHILD_THEME_VERSION
);

Theme was using unpkg.com ionicons for just loading 2 icons.

In order to fix, I’ve decided to simply removing above ionicons from theme as it was absolutely unnecessary.

After removing I started noticing boost in WordPress site loading.

I would suggest you all to remove ionicons files if that’s slowing down your site.


Copyright © 2019 Crunchify, LLC.  •  WordPress Services  •  Contact  •  Hosted at DiscourseHosting.