When CSS and or JS get pulled in from an external source dns-prefetch and preconnect link tags might not be needed anymore. Do a simple strpos() check of the source for the domain name; if not found remove the link tags.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2 created an issue. See original summary.

mikeytown2’s picture

Need to do fonts as well.

  • mikeytown2 committed cfa3d2c on 7.x-2.x
    Issue #2889776 by mikeytown2: Remove no longer needed dns-prefetch and...
mikeytown2’s picture

Status: Needs review » Fixed
FileSize
3.53 KB

This has been committed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.