You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the loadEvent object to provide arbitrary $.get settings
The jQuery AJAX API is pretty powerful. Rather than trying to wrap all
of its abilities, for questionable gain, we can just use the load event
object as the settings parameter. This lets downstream users override
arbitrary settings, like `headers` or `cache` or `timeout`.
The downside is if people are storing funky, non-url things in the load
event, this will break their use case. But it's kind of a weird thing to
do in the current IAS interface, so we probably don't have to be too
paranoid about backwards compatibility. For people who only use
event.url, or don't use the event object at all, they won't even know
anything changed.
0 commit comments