// 1. Defer selected scripts by handle (safe implementation) function safe_defer_scripts($tag, $handle, $src) { $defer_list = ['navigation-js', 'filters-js']; // Adjust these handles to your own if (in_array($handle, $defer_list)) { return str_replace(' src', ' defer src', $tag); } return $tag; } add_filter('script_loader_tag', 'safe_defer_scripts', 10, 3); // 2. Preload Google Fonts safely via WordPress hooks function preload_google_fonts_resource_hints($urls, $relation_type) { if ('preconnect' === $relation_type) { $urls[] = [ 'href' => 'https://fonts.googleapis.com', 'crossorigin' => true, ]; $urls[] = [ 'href' => 'https://fonts.gstatic.com', 'crossorigin' => true, ]; } return $urls; } add_filter('wp_resource_hints', 'preload_google_fonts_resource_hints', 10, 2); // 3. Enqueue the main stylesheet (non-blocking) function enqueue_async_main_style() { wp_enqueue_style( 'main-style', get_stylesheet_uri(), [], wp_get_theme()->get('Version') ); } add_action('wp_enqueue_scripts', 'enqueue_async_main_style'); // 4. Native lazy loading is built into WordPress 5.5+ // Use this fallback ONLY if absolutely needed for older content: function force_lazy_loading_on_images($content) { $pattern = '/]*loading=)([^>]+?)>/i'; $replacement = ''; return preg_replace($pattern, $replacement, $content); } // Uncomment the next line to activate fallback lazy loading: // add_filter('the_content', 'force_lazy_loading_on_images'); Skip to main content

Privacy Policy

We collect personal information from you, including information about your:

  • name
  • contact information
  • interactions with us

We collect your personal information in order to:

  • Provide users with the best online experience
  • ensure legal compliance in New Zealand
  • keep record for warranty purposes

We keep your information safe by storing the information in encrypted files and only allow access to the information by the manager .

We keep your information for the period of the warranty at which point we securely destroy it by secure digital erasure.

You have the right to ask for a copy of any personal information we hold about you, and to ask for it to be corrected if you think it is wrong.

If you’d like to ask for a copy of your information, or to have it corrected, please contact us at info@knives4africa.co.nz, or +642108714870, or PO Box 11102, Ellerslie, 1542, Auckland, New Zealand.