Page MenuHomePhabricator

Gadget MediaWiki:PrettyLinkWidget.js on en.wp links to dead Toolserver; blocks loading
Closed, ResolvedPublic

Description

In the last week, I think since the Javascript changes that decreased initial load time (I saw that come by on twitter), I have been experiencing an extreme lag (as in as much as several minutes or not at all), between when the text on a page loads and when gadgets like HotCat and Twinkle activate. My custom scripts are doing fine (have Rater https://en.wikipedia.org/wiki/User:Kephir/gadgets/rater). In my volunteer role, I am a poweruser, i.e. making hundreds of edits a day-> this is slowing me down alot. About 1 in 8 pages is not experiencing this problem.

I am currently on a Toshiba chromebook running the most current version of chrome.

Event Timeline

Sadads created this task.Aug 26 2015, 2:21 PM
Sadads updated the task description. (Show Details)
Sadads raised the priority of this task from to Needs Triage.
Sadads added a subscriber: Sadads.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 26 2015, 2:21 PM

Have you tried your browser's developer tools to identify any network/performance problems?
Could you provide a load chart (if it does not contain private data)?

How would I do the load chart? I know its not a network thing, in that everything else is loading fine (other mediawiki sites don't run into this "forever load" problem, so my best guess points to the gadgets); and other webpages are not having the load delay problem.

Did a little digging: Here are the errors that came up:

load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "addOnloadHook" is deprecated. Use jQuery instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:142 Mixed Content: The page at 'https://en.wikipedia.org/wiki/Novel' was loaded over HTTPS, but requested an insecure script 'http://api.dp.la/v2/items?api_key=e4c036f3302aad8d8c188683967b9619&q=Novel&callback=_handleResponse&_=1440612052394'. This request has been blocked; the content must be served over HTTPS.jQuery.ajaxTransport.send @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:142jQuery.extend.ajax @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:134jQuery._evalUrl @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:136jQuery.fn.extend.domManip @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:87jQuery.fn.extend.append @ load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:83c @ index.php?title=User:Phette23/Scripts/FindDPLA.js&action=raw&ctype=text/javascript:1m @ index.php?title=User:Phette23/Scripts/FindDPLA.js&action=raw&ctype=text/javascript:1(anonymous function) @ index.php?title=User:Phette23/Scripts/FindDPLA.js&action=raw&ctype=text/javascript:1(anonymous function) @ index.php?title=User:Phette23/Scripts/FindDPLA.js&action=raw&ctype=text/javascript:1
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgScript" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:140 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgFormattedNamespaces" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgTitle" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgPageName" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgNamespaceIds" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgContentLanguage" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "wgContentLanguage" is deprecated. Use mw.config instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "importStylesheetURI" is deprecated. Use mw.loader instead.
load.php?debug=false&lang=en&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=3vxc1Hwb:156 Use of "importScriptURI" is deprecated. Use mw.loader instead.
VM618:17 GET https://toolserver.org/~magnus/lib/jquery-ui-1.7.2.custom/css/ui-lightness/jquery-ui-1.7.2.custom.css net::ERR_CONNECTION_TIMED_OUTimportStylesheetURI @ VM618:17(anonymous function) @ index.php?title=MediaWiki:PrettyLinkWidget.js&action=raw&ctype=text/javascript:308
VM618:17 GET https://toolserver.org/~magnus/lib/jquery-ui-1.7.2.custom/js/jquery-ui-1.7.2.custom.min.js net::ERR_CONNECTION_TIMED_OUT

Problem is https://en.wikipedia.org/wiki/MediaWiki:PrettyLinkWidget.js relying on toolserver.org, which is long gone

If people are using it from their personal vector.js / monobook.js, I think the best would be to blank that page to prevent people from getting stuck on page load

Sadads added a subscriber: Magnus.Aug 26 2015, 7:03 PM

Thanks for finding that error: @Magnus can we do something to prevent others from having similar issues?

@Ciencia_Al_Poder That seems to have reduced the loadtime significantly -> it was stalling out there, but am still getting a 30 second delay related to geoiplookup.wikimedia.org which seems to have been compounding the previous error. Any thoughts?

Aklapper renamed this task from Gadgets taking forever to load on En.Wikipedia to Gadget MediaWiki:PrettyLinkWidget.js on en.wp links to dead Toolserver; blocks loading.Aug 26 2015, 8:45 PM
Aklapper set Security to None.

@Sadads: Not sure which script/gadget triggers the "Mixed Content" warning and tries to access http://api.dp.la instead of an https:// address, but can you try disabling (?) that one too and see if that changes load times? Most developer tools in browsers should also show a "Network" tab with load times for each element on a website.

Thanks @Aklapper figured out that one too, depraciated DPLA Script, that has since become a chrome extension! I like the change in titles though: there should be a ready way for developers to identify and depreciate old versions of scripts that cause unnecessary problems. I had just assumed this was an odd bug because of the update in the loader.

Sadads closed this task as Resolved.Sep 3 2015, 7:18 PM
Sadads claimed this task.

Thanks all for the help, no longer having problems