🎮 The only Front-End Performance Checklist that runs faster than the others.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function test_parse() { | |
| var file = SpreadsheetApp.getActive(); | |
| var sheet = file.getSheetByName('Sheet1'); // change | |
| var sets = { | |
| rangeParse: sheet.getRange('L2:L16429'), // change | |
| rangeResult: sheet.getRange("M2"), // change | |
| func_parse: parseOkkoFilmToGetHorizontalPoster_ // change / create your function | |
| }; | |
| parseUrls_(sets); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ./wordpress | |
| wget https://objectcache.pro/plugin/redis-cache-pro.zip?token=0000000000 | unzip | |
| cp redis-cache-pro/stubs/mu-plugin.php wp-content/mu-plugins/redis-cache-pro.php | |
| mv redis-cache-pro wp-content/mu-plugins | |
| rm redis-cache-pro.zip | |
| read -r -d '' WP_REDIS_CONFIG <<- EOM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* cleaup*/ | |
| remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds | |
| remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed | |
| remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link | |
| remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file. | |
| remove_action( 'wp_head', 'index_rel_link' ); // index link | |
| remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Template Name: Sitemap | |
| */ | |
| get_header(); ?> | |
| <?php if ($GLOBALS['$show_titles']){ echo '- Sitemap'; } ?> | |
| <section id="primary" class="content-area col-sm-12 col-md-12 col-lg-8"> | |
| <div class="content-module"> | |
| <div class="content-item"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php /* Leave this line out when adding the below code to child theme functions.php */ | |
| /** This PHP hook supports GA4 tracking of the WordPress user ID. */ | |
| add_action( 'wp_head', function () { | |
| // REMEMBER TO ADD YOUR MEASUREMENT ID BELOW | |
| $gtag_config = "gtag('config', 'G-ABCDEFGHIJ');"; | |
| // If someone's logged in, let's track. | |
| if ( is_user_logged_in() ) { | |
| $gtag_config = "gtag('config', 'G-ABCDEFGHIJ', { 'user_id': '" . get_current_user_id() . "' });"; | |
| // Set the user_id custom dimension to allow recording and reporting in GA4. NOT NEEDED ANYMORE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * This is a modified mu-plugin for wp-sentry that enables Sentry Performance albeit it doesn't show the stacktrace | |
| * Plugin Name: WordPress Sentry | |
| * Plugin URI: https://github.com/stayallive/wp-sentry | |
| * Description: A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry. | |
| * Version: must-use-proxy | |
| * License: MIT | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** Exit - intent event demo */ | |
| (function () { | |
| if (!document.URL.includes("simple-form")) return; | |
| const beforeUnloadListener = (event) => { | |
| event.preventDefault(); | |
| // GA code goes here. | |
| // Below is an example using gtag.js API. |

