controlling the scripts that Flare adds

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Post Reply
yonatanlehman
Propeller Head
Posts: 51
Joined: Mon Sep 18, 2017 6:14 am

controlling the scripts that Flare adds

Post by yonatanlehman »

Recently I started getting "Error: Mismatched anonymous define()" on page loads that prevented the left menu from appearing and search from working.

By trial and error I discovered that one cause of this was the googletagmanager script that is inserted and after some googling I discovered this is related to requirejs used by Madcap.

One of the solutions suggested is to define a requirejs.onerror handler - but when I inserted it I got an error because requirejs was not recognized
Eventually I found that if I remove the 'defer="defer"" from the following script added by Flare

Code: Select all

        <script src="../../resources/Scripts/require.min.js" type="text/javascript"  defer="defer">
        </script>
then not only is requirejs recognized - I don't need it since the problem triggered by the googletagmanager script dissapeared.

Which now leaves me with the problem - how can I remove the defer="defer" from the line inserted by Flare ?
Or perhaps there is another solution to the problem ?
Thanks
yonatanlehman
Propeller Head
Posts: 51
Joined: Mon Sep 18, 2017 6:14 am

Re: controlling the scripts that Flare adds

Post by yonatanlehman »

Solved this for my solution see
viewtopic.php?f=12&t=33040
Post Reply