Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"
Only the function exists, it's usage is removed
[ashish@xeon:/var/www/html/d8/core/includes]$grep _drupal_add_js -r *
common.inc: * of member items from _drupal_add_css() or _drupal_add_js().
common.inc: * @see _drupal_add_js()
common.inc: * _drupal_add_js('core/misc/collapse.js');
common.inc: * _drupal_add_js('core/misc/collapse.js', 'file');
common.inc: * _drupal_add_js('jQuery(document).ready(function () { alert("Hello!"); });', 'inline');
common.inc: * _drupal_add_js('jQuery(document).ready(function () { alert("Hello!"); });',
common.inc: * _drupal_add_js('http://example.com/example.js', 'external');
common.inc: * _drupal_add_js(array('myModule' => array('key' => 'value')), 'setting');
common.inc: * Calling drupal_static_reset('_drupal_add_js') will clear all JavaScript added
common.inc: * _drupal_add_js() in a hook_page_build() implementation.
common.inc: * else being the same, JavaScript added by a call to _drupal_add_js() that
common.inc: * which _drupal_add_js() happened earlier in the page request.
common.inc: * _drupal_add_js(), and this function call's additions.
common.inc:function _drupal_add_js($data = NULL, $options = NULL) {
common.inc: // order of the calls to _drupal_add_js().
common.inc: * @see _drupal_add_js()
common.inc: * _drupal_add_js() from hook_js_alter() will not be added to the output
common.inc: * @see _drupal_add_js()
common.inc: $javascript = _drupal_add_js();
common.inc: _drupal_add_js($setting, 'setting');
common.inc: // as to the _drupal_add_js() cache. If $items['settings'] doesn't exist, it's
common.inc: * - _drupal_add_js() is idempotent: calling it twice with the same parameters
common.inc: * $js = _drupal_add_js();
common.inc: * @see _drupal_add_js()
common.inc: * @see _drupal_add_js()
common.inc: // The parameters for _drupal_add_js() and _drupal_add_css() require special
[ashish@xeon:/var/www/html/d8/core/includes]$
Comments
Comment #1
rpayanmWorking on this...
Comment #2
rpayanmI got a dude, the function drupal_get_js, still use _drupal_add_js, what suppose that I do with this?
Greetings.
Comment #3
joshi.rohit100Just try to grep from root, Usage of this are still left.
Comment #4
rpayanmComment #5
seanBThis should wait for https://www.drupal.org/node/2334029 and https://www.drupal.org/node/1762204.
Marking related issues.
Comment #6
dawehnerThat is not true, we call it at least once
Comment #7
disasm CreditAttribution: disasm at AppliedTrust commentedThis was removed in: Wed Jan 21 15:21:06 2015 +0000 dd3a597 Issue #2368797 by Wim Leers, dawehner, rteijeiro: Optimize ajaxPageState to keep Drupal 8 sites fast on high-latency networks, prevent CSS/JS aggregation from taking down sites and use HTTP GET for AJAX requests [Nathaniel Catchpole]
Comment #8
Mile23