Comments (7)
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.
Hi @jenstornell! Could you show me the code are you using?
from ajax.
https://github.com/fdaciuk/ajax/blob/dev/src/ajax.js#L125
from ajax.
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.
@jenstornell you should use minified code too, instead the source.
from ajax.
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.
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)
- Support to withCredentials HOT 1
- Add jsonp method HOT 2
- Error HOT 13
- Add non-minified source on NPM HOT 1
- "Promise" api is not a proper thenable HOT 1
- mothed "GET" no param request. HOT 1
- Get HTML data HOT 1
- Add PATCH support HOT 5
- Call blocked: Origin 'null' is therefore not allowed access HOT 1
- Use fetch with XMLHttpRequest fallback? HOT 3
- Browser logos are broken on README HOT 1
- add 'get' data support HOT 1
- Posso trocar o ajaxForm() do jQuery por essa lib? HOT 2
- Send [object object] from method PUT HOT 4
- ES6 / ES2015 module import HOT 1
- Shouldn't 2.3.1 be a new minor version? HOT 3
- Is this ajax use cache? HOT 1
- Error when using method options HOT 4
- content-type: x-www-form-urlencoded error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ajax.