Git Product home page Git Product logo

wp-optimisations's Introduction

WP-Optimisations

Warning: Opinionated!

Just to let you know, this is a highly opinionated way of doing things. I don't know if what works for me will work for you. However, in my use, I have found WP to be very opinionated anyway - I just disagree with a lot of those opinions...

  1. WordPress requires jQuery & jQuery Migrate. jQuery itself is fine as most major plugins need it, but jQuery Migrate is a weird thing to require.
  2. It expects you'll use the new Block Editor and includes a stylesheet even if you don't. (More on this later.)
  3. oEmbed is included and adds quite a lot of bloat for what little it does.

What it does

  • Removes unnecessary CSS files (at the moment, just the Block Library CSS, block-library).
  • Remove jQuery Migrate, because it's not necessary in most cases.
  • Remove the quagmire that is oEmbed support.

What it does not

  • Remove wp-emoji. I want to, because I hate all the bloat it adds, but I'm not aware of a clean way to disable it in full without breaking something entirely different in the process. It's the WP equivalent of this:

Two CSS properties walk into a bar. A barstool in a completely different bar falls over. credit

Philosophy

I always use Classic Editor because every WP site I launch takes advantage of Advanced Custom Fields. For one, I believe you need to buy ACF's premium package if you want it to work with the Block Editor which is a bit much. Additionally, by now most of my clients have a bit of experience with the Classic Editor. There's really no argument I can see in favour of the Block Editor. (Side note: as of the time of writing, the Classic Editor plugin has 3m installs. I ain't sayin' that means BE was a bad idea...)

wp-optimisations's People

Contributors

edadams avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.