While it wasn't initially designed to support the Fabric mod loader, you can run OptiFine on it using another mod known as OptiFabric. The only downside is that it is hard to maintain OptiFabric; sooner or later, you might run into trouble loading the mod on Fabric.