Skip to content

Instantly share code, notes, and snippets.

@iccir
Last active April 12, 2026 19:13
Show Gist options
  • Select an option

  • Save iccir/3ed797b0cecde1fc93ddf3c68f52e25d to your computer and use it in GitHub Desktop.

Select an option

Save iccir/3ed797b0cecde1fc93ddf3c68f52e25d to your computer and use it in GitHub Desktop.
Prevent lag in Safari when Console is streaming

If Console is streaming log messages, typing a URL in Safari's location field will often lag before showing results. This is due to the UnifiedFieldCompletionListGenerator class sending thousands of logging messages via os_log_info().

To fix this, create a plist with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>URLAutocomplete</key>
    <dict>
        <key>Level</key>
        <dict>
            <key>Enable</key>
            <string>Off</string>
            <key>Persist</key>
            <string>Off</string>
        </dict>
    </dict>
</dict>
</plist>

Then copy it to /Library/Preferences/Logging/Subsystems/com.apple.Safari.plist:

sudo mkdir -p /Library/Preferences/Logging/Subsystems
sudo cp TheExamplePlist.plist /Library/Preferences/Logging/Subsystems/com.apple.Safari.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>URLAutocomplete</key>
<dict>
<key>Level</key>
<dict>
<key>Enable</key>
<string>Off</string>
<key>Persist</key>
<string>Off</string>
</dict>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment