Changeset 211334 in webkit


Ignore:
Timestamp:
Jan 28, 2017, 4:04:43 AM (8 years ago)
Author:
Antti Koivisto
Message:

Give scripts 'high' load priority
https://bugs.webkit.org/show_bug.cgi?id=167550

Reviewed by Andreas Kling.

For historical reasons it is currently 'medium', same as web fonts and some other non-parsing blocking things.

  • loader/cache/CachedResource.cpp:

(WebCore::CachedResource::defaultPriorityForResourceType):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r211332 r211334  
     12017-01-28  Antti Koivisto  <antti@apple.com>
     2
     3        Give scripts 'high' load priority
     4        https://bugs.webkit.org/show_bug.cgi?id=167550
     5
     6        Reviewed by Andreas Kling.
     7
     8        For historical reasons it is currently 'medium', same as web fonts and some other non-parsing blocking things.
     9
     10        * loader/cache/CachedResource.cpp:
     11        (WebCore::CachedResource::defaultPriorityForResourceType):
     12
    1132017-01-28  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Source/WebCore/loader/cache/CachedResource.cpp

    r211288 r211334  
    7171        return ResourceLoadPriority::VeryHigh;
    7272    case CachedResource::CSSStyleSheet:
     73    case CachedResource::Script:
    7374        return ResourceLoadPriority::High;
    74     case CachedResource::Script:
    7575#if ENABLE(SVG_FONTS)
    7676    case CachedResource::SVGFontResource:
Note: See TracChangeset for help on using the changeset viewer.