{"id":12916294,"date":"2020-05-30T22:09:24","date_gmt":"2020-05-30T22:09:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wpdiscuz-excessive-inline-javascript\/"},"modified":"2020-05-30T22:09:24","modified_gmt":"2020-05-30T22:09:24","slug":"wpdiscuz-excessive-inline-javascript","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wpdiscuz-excessive-inline-javascript\/","title":{"rendered":"WpDiscuz excessive inline Javascript"},"content":{"rendered":"<p>Dear Developers,<\/p>\n<p>I have basically every module of WpDiscuz deactivated. And yet every page that is loaded has the following inline-Javascript:<\/p>\n<p><code>var wpdiscuzAjaxObj={&quot;wc_hide_replies_text&quot;:&quot;Hide Replies&quot;,&quot;wc_show_replies_text&quot;:&quot;View Replies&quot;,&quot;wc_msg_required_fields&quot;:&quot;Please fill out required fields&quot;,&quot;wc_invalid_field&quot;:&quot;Some of field value is invalid&quot;,&quot;wc_error_empty_text&quot;:&quot;please fill out this field to comment&quot;,&quot;wc_error_url_text&quot;:&quot;url is invalid&quot;,&quot;wc_error_email_text&quot;:&quot;email address is invalid&quot;,&quot;wc_invalid_captcha&quot;:&quot;Invalid Captcha Code&quot;,&quot;wc_login_to_vote&quot;:&quot;You Must Be Logged In To Vote&quot;,&quot;wc_deny_voting_from_same_ip&quot;:&quot;You are not allowed to vote for this comment&quot;,&quot;wc_self_vote&quot;:&quot;You cannot vote for your comment&quot;,&quot;wc_vote_only_one_time&quot;:&quot;You&#039;ve already voted for this comment&quot;,&quot;wc_voting_error&quot;:&quot;Voting Error&quot;,&quot;wc_comment_edit_not_possible&quot;:&quot;Sorry, this comment is no longer possible to edit&quot;,&quot;wc_comment_not_updated&quot;:&quot;Sorry, the comment was not updated&quot;,&quot;wc_comment_not_edited&quot;:&quot;You&#039;ve not made any changes&quot;,&quot;wc_msg_input_min_length&quot;:&quot;Input is too short&quot;,&quot;wc_msg_input_max_length&quot;:&quot;Input is too long&quot;,&quot;wc_spoiler_title&quot;:&quot;Spoiler Title&quot;,&quot;wc_cannot_rate_again&quot;:&quot;You cannot rate again&quot;,&quot;wc_not_allowed_to_rate&quot;:&quot;You&#039;re not allowed to rate here&quot;,&quot;wc_follow_user&quot;:&quot;Follow this user&quot;,&quot;wc_unfollow_user&quot;:&quot;Unfollow this user&quot;,&quot;wc_follow_success&quot;:&quot;You started following this comment author&quot;,&quot;wc_follow_canceled&quot;:&quot;You stopped following this comment author.&quot;,&quot;wc_follow_email_confirm&quot;:&quot;Please check your email and confirm the user following request.&quot;,&quot;wc_follow_email_confirm_fail&quot;:&quot;Sorry, we couldn&#039;t send confirmation email.&quot;,&quot;wc_follow_login_to_follow&quot;:&quot;Please login to follow users.&quot;,&quot;wc_follow_impossible&quot;:&quot;We are sorry, but you can&#039;t follow this user.&quot;,&quot;wc_follow_not_added&quot;:&quot;Following failed. Please try again later.&quot;,&quot;is_user_logged_in&quot;:&quot;&quot;,&quot;commentListLoadType&quot;:&quot;0&quot;,&quot;commentListUpdateType&quot;:&quot;0&quot;,&quot;commentListUpdateTimer&quot;:&quot;30&quot;,&quot;liveUpdateGuests&quot;:&quot;0&quot;,&quot;wordpressThreadCommentsDepth&quot;:&quot;10&quot;,&quot;wordpressIsPaginate&quot;:&quot;&quot;,&quot;commentTextMaxLength&quot;:null,&quot;commentTextMinLength&quot;:&quot;1&quot;,&quot;storeCommenterData&quot;:&quot;100000&quot;,&quot;isGoodbyeCaptchaActive&quot;:&quot;&quot;,&quot;socialLoginAgreementCheckbox&quot;:&quot;0&quot;,&quot;enableFbLogin&quot;:&quot;0&quot;,&quot;enableFbShare&quot;:&quot;0&quot;,&quot;facebookAppID&quot;:&quot;&quot;,&quot;facebookUseOAuth2&quot;:&quot;0&quot;,&quot;enableGoogleLogin&quot;:&quot;0&quot;,&quot;googleClientID&quot;:&quot;&quot;,&quot;googleClientSecret&quot;:&quot;&quot;,&quot;cookiehash&quot;:&quot;a527aee3e1ba36fa1b937925d29b39ee&quot;,&quot;isLoadOnlyParentComments&quot;:&quot;0&quot;,&quot;commentFormView&quot;:&quot;collapsed&quot;,&quot;enableDropAnimation&quot;:&quot;0&quot;,&quot;isNativeAjaxEnabled&quot;:&quot;0&quot;,&quot;enableBubble&quot;:&quot;0&quot;,&quot;bubbleLiveUpdate&quot;:&quot;0&quot;,&quot;bubbleHintTimeout&quot;:&quot;45&quot;,&quot;bubbleHintHideTimeout&quot;:&quot;10&quot;,&quot;cookieHideBubbleHint&quot;:&quot;wpdiscuz_hide_bubble_hint&quot;,&quot;bubbleShowNewCommentMessage&quot;:&quot;0&quot;,&quot;bubbleLocation&quot;:&quot;left_corner&quot;,&quot;firstLoadWithAjax&quot;:&quot;0&quot;,&quot;wc_copied_to_clipboard&quot;:&quot;Copied to clipboard!&quot;,&quot;inlineFeedbackAttractionType&quot;:&quot;disable&quot;,&quot;loadRichEditor&quot;:&quot;0&quot;,&quot;wpDiscuzReCaptchaSK&quot;:&quot;6LemxOoSAAAAAHL-pieRnyL0az6uijgbM7f2hoSA&quot;,&quot;wpDiscuztheme&quot;:&quot;light&quot;,&quot;wpDiscuzReCaptchaVersion&quot;:&quot;2.0&quot;,&quot;wc_captcha_show_for_guest&quot;:&quot;0&quot;,&quot;wc_captcha_show_for_members&quot;:&quot;0&quot;,&quot;wpDiscuzIsShowOnSubscribeForm&quot;:&quot;0&quot;,&quot;wmuEnabled&quot;:&quot;0&quot;,&quot;wmuInput&quot;:&quot;wmu_files&quot;,&quot;wmuMaxFileCount&quot;:&quot;1&quot;,&quot;wmuMaxFileSize&quot;:&quot;2097152&quot;,&quot;wmuPostMaxSize&quot;:&quot;67108864&quot;,&quot;wmuIsLightbox&quot;:&quot;0&quot;,&quot;wmuMimeTypes&quot;:{&quot;jpg|jpeg|jpe&quot;:&quot;image\\\/jpeg&quot;,&quot;gif&quot;:&quot;image\\\/gif&quot;,&quot;png&quot;:&quot;image\\\/png&quot;,&quot;bmp&quot;:&quot;image\\\/bmp&quot;,&quot;tiff|tif&quot;:&quot;image\\\/tiff&quot;,&quot;ico&quot;:&quot;image\\\/x-icon&quot;},&quot;wmuPhraseConfirmDelete&quot;:&quot;Are you sure you want to delete this attachment?&quot;,&quot;wmuPhraseNotAllowedFile&quot;:&quot;Not allowed file type&quot;,&quot;wmuPhraseMaxFileCount&quot;:&quot;Maximum number of uploaded files is 1&quot;,&quot;wmuPhraseMaxFileSize&quot;:&quot;Maximum upload file size is 2MB&quot;,&quot;wmuPhrasePostMaxSize&quot;:&quot;Maximum post size is 64MB&quot;,&quot;msgEmptyFile&quot;:&quot;File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.&quot;,&quot;msgPostIdNotExists&quot;:&quot;Post ID not exists&quot;,&quot;msgUploadingNotAllowed&quot;:&quot;Sorry, uploading not allowed for this post&quot;,&quot;msgPermissionDenied&quot;:&quot;You do not have sufficient permissions to perform this action&quot;,&quot;wmuSecurity&quot;:&quot;ee2985b45f&quot;,&quot;wmuKeyImages&quot;:&quot;images&quot;,&quot;wmuSingleImageWidth&quot;:&quot;auto&quot;,&quot;wmuSingleImageHeight&quot;:&quot;200&quot;,&quot;version&quot;:&quot;7.0.2&quot;,&quot;wc_post_id&quot;:&quot;223362&quot;,&quot;loadLastCommentId&quot;:&quot;0&quot;,&quot;isCookiesEnabled&quot;:&quot;1&quot;,&quot;dataFilterCallbacks&quot;:[],&quot;is_email_field_required&quot;:&quot;1&quot;,&quot;url&quot;:&quot;&quot;,&quot;customAjaxUrl&quot;:&quot;&quot;,&quot;bubbleUpdateUrl&quot;:&quot;&quot;};var wpdiscuzUCObj={&quot;msgConfirmDeleteComment&quot;:&quot;Are you sure you want to delete this comment?&quot;,&quot;msgConfirmCancelSubscription&quot;:&quot;Are you sure you want to cancel this subscription?&quot;,&quot;msgConfirmCancelFollow&quot;:&quot;Are you sure you want to cancel this follow?&quot;};<\/code><\/p>\n<p>Please, only load the specific parts of the Javascript inline that are relevant &#8211; an &#8220;if&#8221; statement with the configuration from the database will easily accomplish the job.<\/p>\n<p>Thank you!!!<\/p>\n","protected":false},"template":"","class_list":["post-12916294","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12916294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12916294\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12916294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}