Git Product home page Git Product logo

Comments (7)

fdaciuk avatar fdaciuk commented on July 30, 2024 1

No problem about minified code. You can use source in this case =)

Maybe it's a semicolon missing in the cookie js then?

Yes, adding a semicolon at the first position, it should works like a charm =)

from ajax.

fdaciuk avatar fdaciuk commented on July 30, 2024

Hi @jenstornell! Could you show me the code are you using?

from ajax.

jenstornell avatar jenstornell commented on July 30, 2024

https://github.com/fdaciuk/ajax/blob/dev/src/ajax.js#L125

from ajax.

fdaciuk avatar fdaciuk commented on July 30, 2024

Yes, this is the lib code, and it is ok. I want to see your code =)

But to fix it, you should add a semicolon on your code, if you are using IIFE, for example, like this.

from ajax.

fdaciuk avatar fdaciuk commented on July 30, 2024

@jenstornell you should use minified code too, instead the source.

from ajax.

jenstornell avatar jenstornell commented on July 30, 2024

I combine ajax.js with this file: https://github.com/Alex-D/Cookies-EU-banner/blob/master/src/cookies-eu-banner.js (cookie script last).

some-ajax-code
some-cookie-js-code

Maybe it's a semicolon missing in the cookie js then?

https://github.com/Alex-D/Cookies-EU-banner/blob/master/src/cookies-eu-banner.js#L1

from ajax.

jenstornell avatar jenstornell commented on July 30, 2024

About minified code... I don't like to use the minified code. Instead I use Gulp to minify it. That way it's easier for me to debug it on the localhost. So, minified on the live server, not minified on the localhost.

from ajax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.