• Resolved Xaib Aslam

    (@lahorimela)


    Hi there,

    Since updating your plugin has injected 20+ js into my site, which has caused massive performance issues.

    Please advise ASAP on how to remove, it’s causing our business real damage, and I’m sure will affect many others’ sites.

    Thanks,
    Xaib

    These files that are loaded are as follows:

    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/vendor/react.min.js?ver=18.2.0' id='react-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.2.0' id='react-dom-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/escape-html.min.js?ver=03e27a7b6ae14f7afaa6' id='wp-escape-html-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/element.min.js?ver=b3bda690cfc516378771' id='wp-element-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/vendor/lodash.min.js?ver=4.17.19' id='lodash-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" id='lodash-js-after'>
    window.lodash = _.noConflict();
    </script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/dom-ready.min.js?ver=392bdd43726760d1f3ca' id='wp-dom-ready-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/a11y.min.js?ver=ecce20f002eda4c19664' id='wp-a11y-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/deprecated.min.js?ver=6c963cb9494ba26b77eb' id='wp-deprecated-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/dom.min.js?ver=e03c89e1dd68aee1cb3a' id='wp-dom-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/is-shallow-equal.min.js?ver=20c2b06ecf04afb14fee' id='wp-is-shallow-equal-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/keycodes.min.js?ver=184b321fa2d3bc7fd173' id='wp-keycodes-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/priority-queue.min.js?ver=422e19e9d48b269c5219' id='wp-priority-queue-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/compose.min.js?ver=7d5916e3b2ef0ea01400' id='wp-compose-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/vendor/moment.min.js?ver=2.29.4' id='moment-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" id='moment-js-after'>
    moment.updateLocale( 'en_US', {"months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"week":{"dow":1},"longDateFormat":{"LT":"g:i a","LTS":null,"L":null,"LL":"M d, Y","LLL":"F j, Y g:i a","LLLL":null}} );
    </script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/date.min.js?ver=f8550b1212d715fbf745' id='wp-date-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" id='wp-date-js-after'>
    wp.date.setSettings( {"l10n":{"locale":"en_US","months":["January","February","March","April","May","June","July","August","September","October","November","December"],"monthsShort":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"weekdays":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"weekdaysShort":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"meridiem":{"am":"am","pm":"pm","AM":"AM","PM":"PM"},"relative":{"future":"%s from now","past":"%s ago"},"startOfWeek":1},"formats":{"time":"g:i a","date":"M d, Y","datetime":"F j, Y g:i a","datetimeAbbreviated":"M j, Y g:i a"},"timezone":{"offset":5,"string":"Asia\/Karachi","abbr":"PKT"}} );
    </script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/html-entities.min.js?ver=36a4a255da7dd2e1bf8e' id='wp-html-entities-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/primitives.min.js?ver=dfac1545e52734396640' id='wp-primitives-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/private-apis.min.js?ver=6f247ed2bc3571743bba' id='wp-private-apis-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/redux-routine.min.js?ver=d86e7e9f062d7582f76b' id='wp-redux-routine-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/data.min.js?ver=90cebfec01d1a3f0368e' id='wp-data-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" id='wp-data-js-after'>
    ( function() {
    	var userId = 33;
    	var storageKey = "WP_DATA_USER_" + userId;
    	wp.data
    		.use( wp.data.plugins.persistence, { storageKey: storageKey } );
    } )();
    </script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/rich-text.min.js?ver=9307ec04c67d79b6e813' id='wp-rich-text-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/warning.min.js?ver=4acee5fc2fd9a24cefc2' id='wp-warning-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-includes/js/dist/components.min.js?ver=bf6e0ec3089253604b52' id='wp-components-js'></script>
    <script type="b293ccbde57b60a584a5bcd2-text/javascript" src='https://mywebsite.com/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/assets/js/admin-bar.js?ver=1.0.120' id='rank-math-analytics-stats-js'></script>
    <div id="amm_drcfw_toast_msg"></div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lahorimela,

    Thank you for contacting the support.

    The scripts don’t seem to be added by our plugin. The only file coming from our plugin is the admin-bar.js which is used to add the options of our plugin to the admin bar. These files must be injected by your theme or some other plugin.

    Can you please confirm how you figured out that the files are being injected by our plugin?

    Also, did you test the page after logging out from your admin account and as a guest visitor (non-logged in)?

    Looking forward to helping you.

    Thread Starter Xaib Aslam

    (@lahorimela)

    Yes, the issue was present when I was logged in. Without logging in, those URLs did not appear. I noticed that these URLs were generated when using your plugin. To troubleshoot this, I deactivated all plugins and checked them one by one. I discovered that when Rank Math is active, these URLs appear.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @lahorimela,

    We checked with the devs and they confirmed that those scripts are added when using the Frontend Stats Bar of our plugin. Some of the scripts seem to be added by WordPress dependencies and we will get it checked on our end.

    Please navigate to WP Dashboard > Rank Math SEO > General Settings > Analytics and disable the Frontend Stats Bar option if you don’t want those scripts to be added to your site.

    Don’t hesitate to get in touch in case you need our assistance with anything else.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Your plugin has injected 20+ js files’ is closed to new replies.