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

What happened to Viserion in Season 7?

What is the purpose of the side handle on a hand ("eggbeater") drill?

What's the difference between using dependency injection with a container and using a service locator?

What helicopter has the most rotor blades?

What does the black goddess statue do and what is it?

Where to find documentation for `whois` command options?

How to compute a Jacobian using polar coordinates?

Like totally amazing interchangeable sister outfit accessory swapping or whatever

Is there an efficient way for synchronising audio events real-time with LEDs using an MCU?

What's called a person who works as someone who puts products on shelves in stores?

Processing ADC conversion result: DMA vs Processor Registers

"Working on a knee"

SQL Server placement of master database files vs resource database files

Co-worker works way more than he should

What is a 'Key' in computer science?

`FindRoot [ ]`::jsing: Encountered a singular Jacobian at a point...WHY

Why did Israel vote against lifting the American embargo on Cuba?

What is the evidence that custom checks in Northern Ireland are going to result in violence?

Will I be more secure with my own router behind my ISP's router?

Why did Europeans not widely domesticate foxes?

Will I lose my paid in full property

Will temporary Dex penalties prevent you from getting the benefits of the "Two Weapon Fighting" feat if your Dex score falls below the prerequisite?

Was Objective-C really a hindrance to Apple software development?

What does こした mean?



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;








2















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?










share|improve this question
























  • 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

















2















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?










share|improve this question
























  • 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













2












2








2








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?










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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

















  • 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










1 Answer
1






active

oldest

votes


















0














could you find a solution for this






share|improve this answer








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.




















    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    could you find a solution for this






    share|improve this answer








    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.
























      0














      could you find a solution for this






      share|improve this answer








      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.






















        0












        0








        0







        could you find a solution for this






        share|improve this answer








        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







        share|improve this answer








        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.









        share|improve this answer



        share|improve this answer






        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 3 hours 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.



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Nidaros erkebispedøme

            Birsay

            Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?