5

Well, we have a page running RequireJS, which loads the dependencies, creates the approuter and well, all backbone load.

On html page, we load :

<script>
    require.config({
     baseUrl: "/source/js"
    });
    require(["/source/js/main.js"], function() {
        alert('Done') ;
    }) ;
</ script>

And this, in principle does not fail (Say 'Done'), but it does not run any more. It not executes the code (In main.js):

require(
   ['routers/approuter',
     'shared'
   ],
function(AppRouter, SharedObject){
    var app_router = new AppRouter;
    etc.....

This happens only with AdBlocks, not with AdBlocks Plus. We don't have ads in the web, only require.js loading Backbone, making calls to the api and returning small pieces of json :(

I not know if could give useful information for assistance, does not load the whole site .... we are in trouble :(


Typical, solved:

Simply by having a js file called 'promotionaddform.js' adblocks blocking the entire page. .... Beware of filenames!...

Sorry for the post :(

Worvast
  • 279
  • 2
  • 16
  • 1
    Why sorry, good question and good answer. Knowledge is power :) – KiT O Oct 29 '13 at 17:39
  • You should submit the solution to your question as an answer. (It may seem strange to answer your own question but it is perfectly fine and prevents your question from needlessly showing up among the "unanswered" ones.) – Louis Nov 28 '13 at 01:57

1 Answers1

0

Loading scripts with certain filenames causes AdBlocks to stop execution of JavaScript on that page.

One such example is promotionaladdform.js.

Havvy
  • 1,471
  • 14
  • 27