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;








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



























            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

            Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

            Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

            Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»