开发者

why browsers don't put important javascript library like jquery or extjs in their package? [closed]

开发者 https://www.devze.com 2023-02-13 07:50 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifyi开发者_运维问答ng this question so that it can be reopened, visit the help center. Closed 11 years ago.

why web browsers don't put important javascript library like jquery or extjs in their package? with this work sites loading time be low.


There's a CDN for jQuery. Using it assures, jQuery will be in browser cache even if someone visits certain site first time.


How do you propose that a browser differentiate between a reference to /libs/jQuery.js and one to /libs/SomeApplication/someFeature/jQuery.js ?

Especially if

  • the first one is an old version where you integrated one or two bugfixes
  • and the other one just the compatibility layer for jQuery in SomeApplication (so not even anything related to jQuery own source code)
0

精彩评论

暂无评论...
验证码 换一张
取 消