4 ms·
For those that are curious, here is what the famous "load-script.php" returns when you call it with a bunch of params: https://wordpress.com/wp-admin/load-scrip
by Raphmedia 9y ago
For those that are curious, here is what the famous "load-script.php" returns when you call it with a bunch of params: https://wordpress.com/wp-admin/load-scripts.php?c=0&load%5B%5D=accordion,accordion,bookmarklet,bookmarklet,color-picker,color-picker,comment,comment,common,common,custom-background,custom-background,custom-header,customize-controls,customize-controls,customize-nav-menus,customize-nav-menus,customize-widgets,customize-widgets,dashboard,dashboard,edit-comments,edit-comments,editor-expand,editor-expand,editor,editor,farbtastic,gallery,gallery,image-edit,image-edit,inline-edit-post,inline-edit-post,inline-edit-tax,inline-edit-tax,iris,language-chooser,language-chooser,link,link,media-gallery,media-gallery,media-upload,media-upload,media,media,nav-menu,nav-menu,password-strength-meter,password-strength-meter,plugin-install,plugin-install,post,post,postbox,postbox,press-this,press-this,revisions,revisions,set-post-thumbnail,set-post-thumbnail,svg-painter,svg-painter,tags-box,tags-box,tags,tags,theme,theme,updates,updates,user-profile,user-profile,user-suggest,user-suggest,widgets,widgets,word-count,word-count,wp-fullscreen-stub,wp-fullscreen-stub,xfn,xfn https://wordpress.com/wp-admin/load-scripts.php?c=0&load%5B%...
- dotancohen 9y agoThat is a subtle way of making a point. Note however that the file is under 450 KiB, there are images on that site which rival this (generated) file. And the readfile() call is an extraordinarily light call, all it does is, as the name implies, read from disk to STDOUT (the HTTP stream in this case).
- LyndsySimon 9y agoIt's not about filesize - you're not trying to saturate the site's network pipe, you're trying to tie up all of its processes combining arbitrary JS files so it doesn't have time to respond to legitimate requests.
- Raphmedia 9y agoNote that "load-styles.php" isn't any better https://wordpress.com/wp-admin/load-styles.php?c=0&dir=ltr&load%5B%5D=about,admin-menu,color-picker,common,customize-controls,customize-nav-menus,customize-widgets,dashboard,deprecated-media,edit,farbtastic,forms,ie,install,l10n,list-tables,login,media,nav-menus,press-this-editor,press-this,revisions,site-icon,themes,widgets,wp-admin,&ver=4.7.5 https://wordpress.com/wp-admin/load-styles.php?c=0&dir=ltr&l... That being said, one can only hope that generating those isn't that heavy on the server.
- pmarreck 9y agoYou know how I know WP is a monument to poor design and bad technical debt? This right here.