Magento2: Lots of JS Errors on 2. -> Page Load Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?JS errors Magento 2Magento 2.0.7 After page refresh some js giving error?How do include a lot of JS in Magento 2 from a flat designWhy is js breaking with requirejs in templates on Magento 2 and how to fix?Magento 2 / Require JS is trying to load a file from a TweenLite CDN scriptMagento2 : How to get when page content loadUncaught reference error - is not defined - Magento 2Loading Javascript for minicart in Magento 2Magento 2 - Require Js not a function errorMagento 2.2.2 - RequireJS domReady! not working with Slick Product Slider
Co-worker works way more than he should
Did war bonds have better investment alternatives during WWII?
Is it accepted to use working hours to read general interest books?
What do you call an IPA symbol that lacks a name (e.g. ɲ)?
How was Lagrange appointed professor of mathematics so early?
Was there ever a LEGO store in Miami International Airport?
What is the purpose of the side handle on a hand ("eggbeater") drill?
Why isn't everyone flabbergasted about Bran's "gift"?
Was Objective-C really a hindrance to Apple software development?
How to keep bees out of canned beverages?
What is the evidence that custom checks in Northern Ireland are going to result in violence?
What helicopter has the most rotor blades?
Feather, the Redeemed and Dire Fleet Daredevil
Why would the Overseers waste their stock of slaves on the Game?
What to do with someone that cheated their way though university and a PhD program?
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
A journey... into the MIND
My admission is revoked after accepting the admission offer
Raising a bilingual kid. When should we introduce the majority language?
Are there existing rules/lore for MTG planeswalkers?
When does Bran Stark remember Jamie pushing him?
Writing a T-SQL stored procedure to receive 4 numbers and insert them into a table
What is the ongoing value of the Kanban board to the developers as opposed to management
Coin Game with infinite paradox
Magento2: Lots of JS Errors on 2. -> Page Load
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30 pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?JS errors Magento 2Magento 2.0.7 After page refresh some js giving error?How do include a lot of JS in Magento 2 from a flat designWhy is js breaking with requirejs in templates on Magento 2 and how to fix?Magento 2 / Require JS is trying to load a file from a TweenLite CDN scriptMagento2 : How to get when page content loadUncaught reference error - is not defined - Magento 2Loading Javascript for minicart in Magento 2Magento 2 - Require Js not a function errorMagento 2.2.2 - RequireJS domReady! not working with Slick Product Slider
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Hi Fellow Magento Users!
I have a little problem with loading Javascripts.
On first pageload after a cleanup of files and upgrade:setup i experience a page that loads javascripts really slow, and there is a lot of them, but absolutely no errors.
however on second load javascripts is loaded in a bit different position, they come fast but it results in JS errors like;
dataPost.js:13 Uncaught TypeError: $.widget is not a function.
As if jquery is not loaded, however jquery.js is loaded before RequireJs starts to add scripts. And the scripts that changes their position are loaded from RequireJs.
Options like minify and combine are all disabled - Aswell as caching but, if i turn this around and active minify and combine of javascripts, it will generate errors on first page load, however on second page load it will load combined resources for the scripts that is not loaded by RequireJs and it generates no errors at all - but the total amount of loaded javascripts are with this option about 146, however without combination it is only 89 scripts
Does any one have a tip on how to deal with this?
magento-2.1 requirejs
add a comment |
Hi Fellow Magento Users!
I have a little problem with loading Javascripts.
On first pageload after a cleanup of files and upgrade:setup i experience a page that loads javascripts really slow, and there is a lot of them, but absolutely no errors.
however on second load javascripts is loaded in a bit different position, they come fast but it results in JS errors like;
dataPost.js:13 Uncaught TypeError: $.widget is not a function.
As if jquery is not loaded, however jquery.js is loaded before RequireJs starts to add scripts. And the scripts that changes their position are loaded from RequireJs.
Options like minify and combine are all disabled - Aswell as caching but, if i turn this around and active minify and combine of javascripts, it will generate errors on first page load, however on second page load it will load combined resources for the scripts that is not loaded by RequireJs and it generates no errors at all - but the total amount of loaded javascripts are with this option about 146, however without combination it is only 89 scripts
Does any one have a tip on how to deal with this?
magento-2.1 requirejs
I don't think you shouldn't be loading jQuery outside of require, it should be set up as a dependency and each require module that requires it can load it independently. Did you manually add jquery.js?
– Ben Crook
Sep 4 '16 at 13:25
Hi @Ben-Space48 You are so right. The theme have included jquery externally from RequireJs. Doing changes to this made most errors disappear :-)
– Stian Blåsberg
Sep 10 '16 at 11:34
Glad to of helped!
– Ben Crook
Sep 12 '16 at 16:02
add a comment |
Hi Fellow Magento Users!
I have a little problem with loading Javascripts.
On first pageload after a cleanup of files and upgrade:setup i experience a page that loads javascripts really slow, and there is a lot of them, but absolutely no errors.
however on second load javascripts is loaded in a bit different position, they come fast but it results in JS errors like;
dataPost.js:13 Uncaught TypeError: $.widget is not a function.
As if jquery is not loaded, however jquery.js is loaded before RequireJs starts to add scripts. And the scripts that changes their position are loaded from RequireJs.
Options like minify and combine are all disabled - Aswell as caching but, if i turn this around and active minify and combine of javascripts, it will generate errors on first page load, however on second page load it will load combined resources for the scripts that is not loaded by RequireJs and it generates no errors at all - but the total amount of loaded javascripts are with this option about 146, however without combination it is only 89 scripts
Does any one have a tip on how to deal with this?
magento-2.1 requirejs
Hi Fellow Magento Users!
I have a little problem with loading Javascripts.
On first pageload after a cleanup of files and upgrade:setup i experience a page that loads javascripts really slow, and there is a lot of them, but absolutely no errors.
however on second load javascripts is loaded in a bit different position, they come fast but it results in JS errors like;
dataPost.js:13 Uncaught TypeError: $.widget is not a function.
As if jquery is not loaded, however jquery.js is loaded before RequireJs starts to add scripts. And the scripts that changes their position are loaded from RequireJs.
Options like minify and combine are all disabled - Aswell as caching but, if i turn this around and active minify and combine of javascripts, it will generate errors on first page load, however on second page load it will load combined resources for the scripts that is not loaded by RequireJs and it generates no errors at all - but the total amount of loaded javascripts are with this option about 146, however without combination it is only 89 scripts
Does any one have a tip on how to deal with this?
magento-2.1 requirejs
magento-2.1 requirejs
edited Sep 4 '16 at 12:14
Stian Blåsberg
asked Sep 4 '16 at 12:05
Stian BlåsbergStian Blåsberg
617
617
I don't think you shouldn't be loading jQuery outside of require, it should be set up as a dependency and each require module that requires it can load it independently. Did you manually add jquery.js?
– Ben Crook
Sep 4 '16 at 13:25
Hi @Ben-Space48 You are so right. The theme have included jquery externally from RequireJs. Doing changes to this made most errors disappear :-)
– Stian Blåsberg
Sep 10 '16 at 11:34
Glad to of helped!
– Ben Crook
Sep 12 '16 at 16:02
add a comment |
I don't think you shouldn't be loading jQuery outside of require, it should be set up as a dependency and each require module that requires it can load it independently. Did you manually add jquery.js?
– Ben Crook
Sep 4 '16 at 13:25
Hi @Ben-Space48 You are so right. The theme have included jquery externally from RequireJs. Doing changes to this made most errors disappear :-)
– Stian Blåsberg
Sep 10 '16 at 11:34
Glad to of helped!
– Ben Crook
Sep 12 '16 at 16:02
I don't think you shouldn't be loading jQuery outside of require, it should be set up as a dependency and each require module that requires it can load it independently. Did you manually add jquery.js?
– Ben Crook
Sep 4 '16 at 13:25
I don't think you shouldn't be loading jQuery outside of require, it should be set up as a dependency and each require module that requires it can load it independently. Did you manually add jquery.js?
– Ben Crook
Sep 4 '16 at 13:25
Hi @Ben-Space48 You are so right. The theme have included jquery externally from RequireJs. Doing changes to this made most errors disappear :-)
– Stian Blåsberg
Sep 10 '16 at 11:34
Hi @Ben-Space48 You are so right. The theme have included jquery externally from RequireJs. Doing changes to this made most errors disappear :-)
– Stian Blåsberg
Sep 10 '16 at 11:34
Glad to of helped!
– Ben Crook
Sep 12 '16 at 16:02
Glad to of helped!
– Ben Crook
Sep 12 '16 at 16:02
add a comment |
1 Answer
1
active
oldest
votes
could you find a solution for this
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f134654%2fmagento2-lots-of-js-errors-on-2-page-load%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
could you find a solution for this
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
could you find a solution for this
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
could you find a solution for this
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
could you find a solution for this
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 16 mins ago
Jose ParejoJose Parejo
1
1
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Jose Parejo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f134654%2fmagento2-lots-of-js-errors-on-2-page-load%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I don't think you shouldn't be loading jQuery outside of require, it should be set up as a dependency and each require module that requires it can load it independently. Did you manually add jquery.js?
– Ben Crook
Sep 4 '16 at 13:25
Hi @Ben-Space48 You are so right. The theme have included jquery externally from RequireJs. Doing changes to this made most errors disappear :-)
– Stian Blåsberg
Sep 10 '16 at 11:34
Glad to of helped!
– Ben Crook
Sep 12 '16 at 16:02