最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - WordPress loads whole jQuery UI library

programmeradmin1浏览0评论

My wordpress loads whole jQuery UI library

<script type='text/javascript' src='.ui.core.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.widget.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.position.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.mouse.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.sortable.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.datepicker.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.menu.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.autocomplete.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.resizable.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.draggable.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.button.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='.ui.dialog.min.js?ver=1.9.2'></script>

Is this normal? I didn't noticed the same behavior earlier.

My wordpress loads whole jQuery UI library

<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.sortable.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.9.2'></script>
<script type='text/javascript' src='http://example/wp-includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.9.2'></script>

Is this normal? I didn't noticed the same behavior earlier.

Share Improve this question edited Jan 23, 2021 at 17:32 PauloBoaventura 1327 bronze badges asked Sep 16, 2013 at 10:56 CBeTJlu4okCBeTJlu4ok 3092 gold badges5 silver badges23 bronze badges 1
  • 1 I think it is not normal and I think that that files are loaded by a plugin. Have you tried to deactivate all the installed plugins to check if this behavior stops? – cybmeta Commented Sep 16, 2013 at 11:28
Add a comment  | 

3 Answers 3

Reset to default 2

jQuery-UI is included in every default WP installation.
Whether it is loaded depends on your theme and/or plugin(s).

Three Options:

  • live with it
  • disable plugins one by one (and switch theme), figure out which is responsible and whether that's needed
  • manually deregister it (something, i.e. a plugin, will probably break)

Are you using "Events-Manager" plugin? There is an option to disable loading of unnecessary scripts. I found this to be the cause of all the extraordinary jquery.ui files.

You can change the loading here: visit the backend of your wordpress install > Events > Settings > General Tab > Performance Optimization THEN Limit JS file loading? Change this to YES

Limit loading of our CSS files? Change this to YES also.

Hit [ Save Changes (All) ] And you should be set

I had the same issue, My website used to load over 20 jquery ui scripts. I fixed it by disabling the plugin : Powie's Page Cloud Widget

If anyone has this issue, just disable all plugins and enable one by one. Because only plugins are responsible for this problem.

发布评论

评论列表(0)

  1. 暂无评论