Last modified: 2013-11-02 14:20:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52391, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50391 - Slow loading because of duplicate requests
Slow loading because of duplicate requests
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
master
All All
: Highest critical (vote)
: ---
Assigned To: Santhosh Thottingal
https://office.wikimedia.org/w/index....
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-28 19:53 UTC by Siebrand Mazeland
Modified: 2013-11-02 14:20 UTC (History)
11 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Load timeline of URL (604.92 KB, image/png)
2013-06-29 19:55 UTC, Siebrand Mazeland
Details

Description Siebrand Mazeland 2013-06-28 19:53:22 UTC
Loading URL takes 9.55 seconds for me. Only after waiting that long, the input fields for username and password are available for text input.

In the list of 25 HTTP requests involved in loading the page, I see duplicates for the following:
* https://office.wikimedia.org/w/api.php?action=ulslocalization&language=en&namespace=ext-uls
* https://office.wikimedia.org/w/api.php?action=ulslocalization&language=en&namespace=uls

Other details:
* OSX 10.8.4
* Firefox 21.0

Similarly reproduced in OSX/Chrome 27.

If I recall correctly, the API should only be used for legacy browsers, and not the more modern browsers. Something feels very off here.
Comment 2 Siebrand Mazeland 2013-06-29 19:55:28 UTC
Created attachment 12688 [details]
Load timeline of URL

I see these requests. Load timeline added as screenshot.

GET index.php?title=Special:UserLogin
GET load.php?debug=false&lang=en&modules=ext.rtlcite,wikihiero|ext.uls.nojs|mediawiki.legacy.commonPrint,shared|mediawiki.special.userlogin|mediawiki.ui|mw.PopUpMediaTransform|skins.vector&only=styles&skin=vector&*
GET load.php?debug=false&lang=en&modules=site&only=styles&skin=vector&*
GET load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&*
GET load.php?debug=false&lang=en&modules=jquery,mediawiki,Spinner|jquery.triggerQueueCallback,loadingSpinner,mwEmbedUtil|mw.MwEmbedSupport&only=scripts&skin=vector&version=20130620T163512Z
GET load.php?debug=false&lang=en&modules=ext.uls.displaysettings,ime,init,inputsettings,interface,languagenames,languagesettings,preferences,webfonts|ext.uls.webfonts.repository|jquery.client,cookie,delayedBind,i18n,ime,jStorage,json,mwExtension,tipsy,uls,webfonts|jquery.uls.data,grid|mediawiki.Uri,api,notify,user,util|mediawiki.api.parse|mediawiki.legacy.ajax,wikibits|mediawiki.page.startup|skins.vector.js&skin=vector&version=20130629T012149Z&*
GET search-ltr.png?303-4
GET wikimedia-button.png
GET poweredby_mediawiki_88x31.png
GET WikimediaOFFICE-logo135px.png
GET load.php?debug=false&lang=en&modules=ext.eventLogging,navigationTiming|jquery.autoEllipsis,checkboxShiftClick,hidpi,highlightText,makeCollapsible,mw-jump,placeholder,suggestions,tabIndex|mediawiki.hidpi,searchSuggest|mediawiki.page.ready|mobile.desktop|mw.MwEmbedSupport.style|mw.PopUpMediaTransform|schema.NavigationTiming&skin=vector&version=20130628T140249Z&*
GET load.php?debug=false&lang=en&modules=ext.vector.collapsibleNav&skin=vector&version=20130628T140249Z&*
GET load.php?debug=false&lang=en&modules=jquery.ui.button,core,dialog,draggable,mouse,position,resizable,widget&skin=vector&version=20130620T163253Z&*
GET api.php?action=ulslocalization&language=en&namespace=ext-uls
GET api.php?action=ulslocalization&language=en&namespace=ext-uls
GET api.php?action=ulslocalization&language=en&namespace=uls
GET api.php?action=ulslocalization&language=en&namespace=uls
GET api.php?action=ulslocalization&language=en&namespace=uls
GET api.php?action=ulslocalization&language=en&namespace=uls
GET api.php?action=ulslocalization&language=en&namespace=uls
GET api.php?action=ulslocalization&language=en&namespace=ext-uls
GET ime-active.svg?2013-06-20T16:36:40Z
GET icon-language.svg?2013-06-20T16:36:40Z
Comment 3 Santhosh Thottingal 2013-06-30 12:45:42 UTC
The repeated api calls are because of the unavailability of localized messages from jquery.i18n while the first API is in progress. Assigning to myself.
Comment 4 Gerrit Notification Bot 2013-06-30 12:47:31 UTC
Change 71283 had a related patch set uploaded by Santhosh:
ULS i18n performance fixes

https://gerrit.wikimedia.org/r/71283
Comment 5 Gerrit Notification Bot 2013-06-30 14:18:36 UTC
Change 71283 merged by jenkins-bot:
ULS i18n performance fixes

https://gerrit.wikimedia.org/r/71283
Comment 6 Santhosh Thottingal 2013-07-01 08:42:29 UTC
(In reply to comment #0)
> If I recall correctly, the API should only be used for legacy browsers, and
> not
> the more modern browsers. Something feels very off here.

We use API for serving json files for all browsers to take advantage of merging json files and avoid potential 404s

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links