Comments (6)
I'm not sure what a good solution is for that. Can you ask on Stackoverflow please?
from jquery-ui-rails.
Oh, and post a link to your SO question here please - I'm curious too!
from jquery-ui-rails.
@joliss I'm not sure what you're asking for. I'm reporting a flaw in the way jquery-ui-rails functions. A good solution is to not autoload dependencies. When I put:
// = require jquery.ui.autocomplete
It should only load the code for autocomplete and not drag in jquery with it.
from jquery-ui-rails.
To be more explicit about my proposal, we should remove the following lines from jquery.ui.autocomplete.js:
//= require jquery.ui.core
//= require jquery.ui.widget
//= require jquery.ui.position
from jquery-ui-rails.
That's the way it should be, I'm afraid. Dependency management is the whole point jQuery UI Rails (and much of the reason we use Sprockets for that matter).
You can stub out dependencies with Sprockets - https://github.com/sstephenson/sprockets#the-stub-directive - but I honestly don't recommend going down that route.
from jquery-ui-rails.
Actually, that's exactly what I was going to comment on. Stubs are exactly what I'm looking for. Unfortunately, stable Rails (3.2.8) don't support sprockets 2.2, so I had to fork my own version of Rails just to get sprockets 2.2 going.
Thanks!
from jquery-ui-rails.
Related Issues (20)
- couldn't find file 'jquery-ui/datepicker' with type 'application/javascript' HOT 1
- Please support url link for image and support iframe. HOT 1
- couldn't find file 'jquery-ui/datepicker' with type 'application/javascript' HOT 1
- Clarifying README about Jquery Rails Conflict HOT 2
- RequireJS looking at the wrong path
- Impossible to load jquery-ui HOT 12
- Autocomplete dependency not resolved HOT 2
- Inconsistency between widget css/js locations
- Failed to load resource: ui-icons_222222_256x240.png HOT 1
- UI issue on Rails 5 (datepicker) HOT 1
- copy of assets files on the app required? HOT 1
- Nobody should use this because of security vulnerabilities HOT 1
- SyntaxError on ruby 2.5
- is there a way to get this to work with application.sass instead of application.css? HOT 1
- loads all the component files individually HOT 1
- .ui-helper-reset overrides .ui-widget-content
- CSS SyntaxError HOT 1
- SOOOO many questions (and don't use this gem) HOT 3
- Version 7.0.0 not published to rubygems.org HOT 14
- Please release the latest version HOT 6
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 jquery-ui-rails.