Tweaks

Disable Embed Scripts

What Is oEmbed in WordPress?

WordPress includes a feature called oEmbed, which allows users to embed content like YouTube videos, tweets, and other resources by simply pasting a URL. WordPress automatically converts these URLs into embedded content and provides a live preview in the visual editor.

While this feature is convenient, you may want to disable it for the following reasons:

  1. Performance Optimization – oEmbed scripts can slow down your website’s loading time by adding unnecessary HTTP requests and scripts.
  2. Security Enhancements – Disabling oEmbed scripts can reduce potential vulnerabilities associated with embedding third-party content.
  3. Simplified Setup – Most WordPress themes already provide built-in support for embeds, eliminating the need for additional scripts.

This tutorial explains how to disable embed scripts using WP Ghost for improved performance and security.

Hide Embed Scripts

  1. Go to WP Ghost > Tweaks > Hide Options.
  2. Switch on the Hide Embed Scripts option to remove the WordPress oEmbed library in the frontend.
  3. Click the Save button to apply the changes.

Note! For websites heavily relying on embeds, consider optimizing embed performance using plugins like Lazy Load for Videos instead of disabling them completely.

John Darrel

Change Database Prefix in WordPress

Because hackers often use bots to search for security flaws in your website, it is…

1 year

Customize WordPress Uploads Directory

The easiest way to change the default media uploads path is to use the WP…

1 year

WP Ghost and WP Rocket Cache

To hide all CSS and JS you need to follow the steps to Combine the…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Setting up Two-Factor Authentication (2FA) for WordPress Using Mobile Apps

When you enable two-factor authentication (2FA) for your WordPress website, it adds an extra layer…

1 year