Skip to content

Instantly share code, notes, and snippets.

View jackbarham's full-sized avatar

Jack Barham jackbarham

View GitHub Profile
<?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Models\Page;
use App\Models\NewsItem;
use App\Models\VideoItem;
use App\Models\AudioItem;
use App\Models\GalleryItem;
const pkg = require('./package')
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: 'Matter of Form',
@jackbarham
jackbarham / nuxt.config.ts
Last active October 6, 2024 09:56
How to get 100% render blocking score on PageSpeed Inights using Adobe Fonts (aka Typekit) in Nuxt. Adding preload and preconnect scripts with a Typekit font URL increased score from 96% to 100%.
export default defineNuxtConfig({
compatibilityDate: '0000-00-00',
devtools: {
enabled: true
},
modules: [
//
],
app: {
head: {